Welcome Guest, Not a member yet? Register   Sign In
Confusion with .env and config files
#3

(11-01-2020, 06:48 PM)includebeer Wrote: The .env file prevail on everything. The way I see it is the app/Config/ directory contains the settings for your dev environment because you don't want your production settings saved in your source control repository. So on your production server you add a .env file that overrides the default settings and is not overwritten when you push an update.

Thanks for your reply. In such a case, I will then just add the .env on my .gitignore, and I create a .envProduction file, so when I deploy the site I will not replace the production .env file. Using the config files will just confuse me.

Once again, thanks for your advice.
Reply


Messages In This Thread
Confusion with .env and config files - by t_5810 - 11-01-2020, 07:21 AM
RE: Confusion with .env and config files - by t_5810 - 11-01-2020, 07:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB