Skip to content

Instantly share code, notes, and snippets.

@Unitech
Created November 21, 2014 11:19
Show Gist options
  • Select an option

  • Save Unitech/e7088b9fd514ad4dceef to your computer and use it in GitHub Desktop.

Select an option

Save Unitech/e7088b9fd514ad4dceef to your computer and use it in GitHub Desktop.
------------> ✔ process should have been restarted
$pm2 list
┌──────────────┬────┬─────────┬──────┬────────┬───────────┬────────┬─────────────┬──────────┐
│ App name │ id │ mode │ PID │ status │ restarted │ uptime │ memory │ watching │
├──────────────┼────┼─────────┼──────┼────────┼───────────┼────────┼─────────────┼──────────┤
│ server-watch │ 1 │ cluster │ 7232 │ online │ 1 │ 3s │ 17.773 MB │ enabled │
│ server-watch │ 2 │ cluster │ 7256 │ online │ 1 │ 2s │ 17.492 MB │ enabled │
│ server-watch │ 3 │ cluster │ 7278 │ online │ 1 │ 2s │ 17.492 MB │ enabled │
│ server-watch │ 4 │ cluster │ 7301 │ online │ 1 │ 1s │ 17.496 MB │ enabled │
└──────────────┴────┴─────────┴──────┴────────┴───────────┴────────┴─────────────┴──────────┘
Use `pm2 info <id|name>` to get more details about an app
wget -qO- http://localhost:8000 > /dev/null
Error: channel closed
at ChildProcess.target.send (child_process.js:413:26)
at sendHelper (cluster.js:657:8)
at RoundRobinHandle.handoff (cluster.js:198:3)
at RoundRobinHandle.distribute (cluster.js:184:20)
spec "Got connection"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment