Skip to content

Instantly share code, notes, and snippets.

@anyboo
Last active March 21, 2018 02:00
Show Gist options
  • Save anyboo/d2236e7936266ea119ccc02c37243395 to your computer and use it in GitHub Desktop.
Save anyboo/d2236e7936266ea119ccc02c37243395 to your computer and use it in GitHub Desktop.
How to use PM2

Commands Install : cnpm install pm2 -g

npm & package.json

eg : npm run [script].

"scripts": {
   "dev": "node build/dev-server.js",
   "start": "node build/dev-server.js",
   "build": "node build/build.js"
 },
 
@anyboo
Copy link
Author

anyboo commented Mar 21, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment