question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preserve environment when restarting

See original GitHub issue

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 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:closed
  • Created 12 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
maaaikooolcommented, Oct 1, 2015
1reaction
woozykingcommented, Feb 20, 2015

👍 to @Californian

Or simply allow refreshing env vars on forever restart

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found