ipfspics-server icon indicating copy to clipboard operation
ipfspics-server copied to clipboard

Store config in the environment

Open cloutier opened this issue 9 years ago • 1 comments

@VictorBjelkholm has suggested to store database credentials in the environment in #17. It could be implemented this way.

cloutier avatar Oct 29 '15 16:10 cloutier

Use something like phpenv ( https://github.com/phpenv/phpenv ) so you'll have a .env file in the root of the repository that will contain environment variables loaded by the app when you run it. You'll distribute a .env.dist that will contain placeholders and in your production system, you'll just use normal environment variables but in dev use the .env

victorb avatar Oct 29 '15 17:10 victorb