Preserve environment when restarting
See original GitHub issueI’ve just encountered this in production where I’d first start a server with NODE_ENV=production forever start myapp.js
and later attempt to restart it using forever restart myapp.js
which would result in my restarted server being in development mode.
Perhaps it would be best if the environment each process was started with gets restored when restarting?
Issue Analytics
- State:
- Created 12 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Preserve environment when restarting · Issue #116 - GitHub
I've just encountered this in production where I'd first start a server with NODE_ENV=production forever start myapp.js and later attempt to ...
Read more >Environment Variable Keeps resetting - Microsoft Q&A
To make sure an environment variable "sticks" click the Start button, Right Click "Computer" and choose Properties. Click Advanced System ...
Read more >How do you add a Windows environment variable without ...
2. I had this same issue. · 3. You have to close the command prompt, and reopen it again, for your path variables...
Read more >Where does Jenkins store the environment variables ? How to ...
Environment variables are systematically saved when a build is restarted from a stage . No need to stash and unstash files! More details...
Read more >Windows 10 not saving PATH added variables after shutdown ...
I added some paths to Windows environment variables in PATH, but everytime I restart/shutdown my PC it deletes these variables from Windows ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 to @Californian
👍 to @Californian
Or simply allow refreshing env vars on
forever restart