You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you want to reload environment variables when restarting
override old values with memory, not reload:
$ PM2_GRACEFUL_TIMEOUT=60000 pm2 gracefulRestart foobar
# it's 60k
$ pm2 gracefulRestart foobar
# still 60k
$ PM2_GRACEFUL_TIMEOUT=30000 pm2 gracefulRestart foobar
# 30k now
$ pm2 gracefulRestart foobar
# still 30k
Looks pretty doable.
PS: oh wait... pm2 doesn't see those overrides, it sees the entire environment. Oops... Yep, I don't know how to do this. Maybe merge environments somehow...
It would be useful, if I can set environment variables not only before script start but when it already running. For example:
At the moment I can only specify it before starting script.
The text was updated successfully, but these errors were encountered: