Skip to content

Instantly share code, notes, and snippets.

@kumarldh
Created June 6, 2018 12:26
Show Gist options
  • Save kumarldh/9029c56a80ab65153ef465756a9059f3 to your computer and use it in GitHub Desktop.
Save kumarldh/9029c56a80ab65153ef465756a9059f3 to your computer and use it in GitHub Desktop.
run pm2 with watch and inspect
./node_modules/pm2/bin/pm2 delete all; ./node_modules/pm2/bin/pm2 start ./{path to server js} --watch --node-args='--inspect' --no-daemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment