I am trying to pass some arguments to my Express application which is run by pm2. There wasn’t any hint in their documentation to do so, but apparently it’s possible to pass some EV to your node application like
SOME_STUFF=xxx pm2 start app.js
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!