Created
January 15, 2019 00:20
-
-
Save stemmlerjs/eae45b57111809d51ee98fb5bb8d5cfc to your computer and use it in GitHub Desktop.
Start PM2 by npm script name and assign the process a name inline
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 "{app_name}" -- run {script_name} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment