Skip to content

Instantly share code, notes, and snippets.

@stemmlerjs
Created January 15, 2019 00:20
Show Gist options
  • Select an option

  • Save stemmlerjs/eae45b57111809d51ee98fb5bb8d5cfc to your computer and use it in GitHub Desktop.

Select an option

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
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