Created
July 1, 2018 14:17
-
-
Save wichopy/2e5a2292a9315c4430580e4bfe017297 to your computer and use it in GitHub Desktop.
PM2 start npm script with environment variables injected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pm2 start npm --name [process name] -- run [npm script name] ENV_VAR=some_env_var_value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment