how do i tell my node/ express app if it should use test.env or dev.env on mac?
I essentially want to be able to run my app and tell it which database to connect to; (dev or test). However the app always selects 'test.env'.
I am calling
process.env.DBNAME
in order to select the environment variable that stores my database name.
Would also be nice to know how to select the environment when I deploy my app in production.
I don't know what else to try and would really appreciate help!