I'm rewriting a project from scratch using best practices and better config variables. The idea is to have at least 3 environments:
- development = hosted locally (on machine)
- acceptance = hosted on personal NAS
- production = hosted on rented server
After some research I came across the following answer (on how to set NODE_ENV): 9198310
Doesn't this mean I have to change the environment manually before each code push? Is there a way to do this automatically by checking IP or DNS?
FYI, I'm using docker to host the website on acceptance & production. Not locally.