-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing environmental variables to the script ... #33
Comments
The entire environment is passed to child scripts. I just tested now and it works |
It works when using start, but at least for restart command it does not work, it keeps using the same environment as the one available when the app was initially started.
If I do:
It will output test, but if I then do:
It will still output test. |
actually it gets worse. The same effect as above is achieved if instead of restart you use start on a stopped process... |
Can it be modified when the process is running? (assuming you change the ENV variables, then restart) Matej Kramny On Thursday, 9 January 2014 at 11:59, Manuel Astudillo wrote:
|
Let us say I want to do:
PORT=8080 pm2 start -i 4 app.js
I expect that the environment variable will be available to the script. (And I am not able to receive it.) I am trying to find why I am not able to see that variable.
Before I dig deeper, could you confirm (by updating the documentation) that environmental variables are indeed available?
The text was updated successfully, but these errors were encountered: