I don't like it to put hostnames and/or credentials into the repository to make it ready for different scenarios.
I tend to create an .env file for every environment which exists. This also includes a production and development environment for my local machine because I want to see how the application behaves when set to production and of course even if I'm in "production" on my dev machine I use a different database than on a real server.
What do you think about this approach?
No comments yet.