Sunday, 15 December 2019

.env file for prod, test, and dev

What is the best way to setup my .env file for prod, test, and dev environments. In Java, there is one file with all variables in it structured like:env=devprod.database.url=produrldev.database.url=devurland then the variables would be accessed:${${env}.database.url}What is the best practice in nodejs? Use totally separate files for each environment or is there a way to do the above as well?

Submitted December 16, 2019 at 06:31AM by yodigi7

No comments:

Post a Comment