Closed nickbe closed 8 years ago
1) You can do this right now. You can change these in the config files Files: https://github.com/satrun77/tinyissue/tree/master/config Cache file: https://github.com/satrun77/tinyissue/blob/master/config/cache.php#L43 Database file: https://github.com/satrun77/tinyissue/blob/master/config/database.php#L51
2) Sorry don't see any benefits here.
Which setting determines the storage of the upload files under storage/app? database + uploads is probably all I'd need, yes?
From .env file you can move the database to anywhere you want. The variable name DB_DATABASE
The application storage directory can be defined here: https://github.com/satrun77/tinyissue/blob/develop/config/filesystems.php#L48
The directory inside ./app can be changed with .env variable named APP_UPLOAD_DIR. For example the automate tests uses directory named testing instead of uploads https://github.com/satrun77/tinyissue/blob/master/.env.testing#L8
I moved my database and upload files to a seperate folder. Did I get this right... some options can be defined in the config files and also overwritten in the .env file?
Yes.
I'm working on upgrading Laravel to 5.2. There are more options from the config files that can be overwritten in the .env. Also, the default database sqlite location moved from storage directory to database directory.
The directory config contains everything that you can configure. Any configuration value that uses the function env() means you can overwrite in .env. For example, in https://github.com/satrun77/tinyissue/blob/master/config/cache.php#L16 The cache driver is default to 'file' you can overwrite in .env with CACHE_DRIVER=you_new_value
Ah. great. Maybe one day you could write this down into the documentation together with all the possible options. Thanks again,
Would it be possible to: