GroundApps / ShoppingList_Backend

Simple Centralized Shoppinglist - php backend
GNU General Public License v3.0
27 stars 23 forks source link

Move user specific files out of way. #56

Closed jklmnn closed 6 years ago

jklmnn commented 8 years ago

We currently have the config.php in git. When the user sets it up and then loads a new version, it will be overwritten. We should move config.php to config.php.def (to keep a definition file) and create a new config.php on install. The same applies to .htaccess. We also should add those files to .gitignore to prevent inadvertently pushing of credentials to the repo.

the0ne commented 8 years ago

what do you think about including a file named config.local.php right after config.php that file would be optional, user-provided and could override everything that was set in config.php of cause config.local.php should not be put into the repo :smiley:

would look like: include('config.php'); @include('config.local.php');

the advantage would be that the novice user could simply choose to modify the original file and the advanced user could simply create a config.local.php and override what he needs.

jklmnn commented 6 years ago

Closing this due to inactivity.

the0ne commented 6 years ago

had been committed as https://github.com/the0ne/ShoppingList_Backend/commit/31929ef8d4f4edf49e6d32032a71783de8bf2d0f