DEV Community

Discussion on: Where do you store your .env files?

Collapse
 
tiguchi profile image
Thomas Werner

I store .env files (and similar) in my continuous integration system (e.g. Jenkins) and let it automatically add the file when the project is built. If there is anything to be shared (i.e. default settings that are not confidential secrets) then I put it into a template file which I add to the project's repository (e.g. .env.template).