Bagisto: storage/ should not be included in .gitignore

Created on 8 May 2020  路  6Comments  路  Source: bagisto/bagisto

Bug report

Title

Just a quick sentence to brief your trouble with Bagisto or something associated with it.
Please be calm, short and emphasize on points.
storage/ should not be included in the base .gitignore

Issue Description

Description helps the developers to understand the bug. It describes the problem encountered or some after effect of some kind.
if you create a project, and then clone it, the cloned project does not have the necessary storage directory, because storage/ is a line in the base .gitignore. this is unnecessary, because each subdirectory in storage already contains its own .gitignore file.

Preconditions

Please provide as detailed information about your environment as possible.

1. framework Version. 1.1.0
Enhancement

All 6 comments

HI @iateadonut

Thanks for your concern, we will change this.

HI @iateadonut

Thanks for your concern, we will change this.

Storage folder contains system specific temporary view files other than for storage puposes. And its strongly not recommended to do so.

And most of all what is the benefit of ignoring?

No, Storage folder should not be excluded. By excluding Storage folder you will get the following error.

file_put_contents(storage/framework/sessions/fxmkNWHeTJGrSLikVMDEFA06TCG1qkyfc4AZv8vp): failed to open stream: No such file or directory

No, Storage folder should not be excluded. By excluding Storage folder you will get the following error.

file_put_contents(storage/framework/sessions/fxmkNWHeTJGrSLikVMDEFA06TCG1qkyfc4AZv8vp): failed to open stream: No such file or directory

each subdirectory in storage already contains its own .gitignore file - this was done on purpose by the developers of the laravel framework. each session file would NOT be committed since that .gitignore file is there.

in your base .gitignore file, https://github.com/bagisto/bagisto/blob/master/.gitignore , the storage directory is excluded.

Yes, I see that I will remove storage folder from base .gitignore file.

Thanks for pointing out

Fixed in mster

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mhd-yasser-haddad picture mhd-yasser-haddad  路  4Comments

marcelowu picture marcelowu  路  4Comments

farshadff picture farshadff  路  6Comments

AkashWeybee picture AkashWeybee  路  3Comments

manatech picture manatech  路  5Comments