Skip to content

Instantly share code, notes, and snippets.

@Unitech
Created November 29, 2014 11:26
Show Gist options
  • Select an option

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

Select an option

Save Unitech/c58c8b9fc16fbc600ed5 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 │ 7643 │ online │ 1 │ 3s │ 17.707 MB │ enabled │
│ server-watch │ 2 │ cluster │ 7665 │ online │ 1 │ 2s │ 17.691 MB │ enabled │
│ server-watch │ 3 │ cluster │ 7689 │ online │ 1 │ 2s │ 17.957 MB │ enabled │
│ server-watch │ 4 │ cluster │ 7713 │ online │ 1 │ 1s │ 17.691 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:597:8)
at RoundRobinHandle.handoff (cluster.js:178:3)
at RoundRobinHandle.distribute (cluster.js:164:20)
spec "Got connection"
######## ✘ Got connection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment