Skip to content

Instantly share code, notes, and snippets.

@Unitech
Created May 5, 2014 15:14
Show Gist options
  • Save Unitech/0265d13555eabbd31960 to your computer and use it in GitHub Desktop.
Save Unitech/0265d13555eabbd31960 to your computer and use it in GitHub Desktop.
------------> ✔ process should have been restarted
Killing pm2...
Process server-watch stopped
All processes stopped
PM2 stopped
{ online: true, success: true, pid: 10455, pm2_version: '0.8.2' }
PM2 Process launched
┌──────────────┬────┬─────────┬───────┬────────┬──────┬───────────┬────────┬─────────────┬───────────┐
│ App name │ id │ mode │ PID │ status │ port │ restarted │ uptime │ memory │ watching │
├──────────────┼────┼─────────┼───────┼────────┼──────┼───────────┼────────┼─────────────┼───────────┤
│ server-watch │ 0 │ cluster │ 10465 │ online │ │ 0 │ 0s │ 11.684 MB │ activated │
└──────────────┴────┴─────────┴───────┴────────┴──────┴───────────┴────────┴─────────────┴───────────┘
Use `pm2 desc[ribe] <id>` to get more details
Processing......
PM2 Restarting process by id 0
PM2 Process 0 restarted
┌──────────────┬────┬─────────┬───────┬───────────┬──────┬───────────┬────────┬─────────────┬───────────┐
│ App name │ id │ mode │ PID │ status │ port │ restarted │ uptime │ memory │ watching │
├──────────────┼────┼─────────┼───────┼───────────┼──────┼───────────┼────────┼─────────────┼───────────┤
│ server-watch │ 0 │ cluster │ 10485 │ launching │ │ 1 │ 0 │ 11.254 MB │ activated │
└──────────────┴────┴─────────┴───────┴───────────┴──────┴───────────┴────────┴─────────────┴───────────┘
Use `pm2 desc[ribe] <id>` to get more details
------------> ✔ process should be watched
Processing......
PM2 Stopping process by id 0
PM2 Process stopped
┌──────────────┬────┬─────────┬─────┬─────────┬──────┬───────────┬────────┬────────┬─────────────┐
│ App name │ id │ mode │ PID │ status │ port │ restarted │ uptime │ memory │ watching │
├──────────────┼────┼─────────┼─────┼─────────┼──────┼───────────┼────────┼────────┼─────────────┤
│ server-watch │ 0 │ cluster │ 0 │ stopped │ │ 2 │ 0 │ 0 B │ unactivated │
└──────────────┴────┴─────────┴─────┴─────────┴──────┴───────────┴────────┴────────┴─────────────┘
Use `pm2 desc[ribe] <id>` to get more details
------------> ✔ process should have stopped beeing watched
┌──────────────┬────┬─────────┬─────┬─────────┬──────┬───────────┬────────┬────────┬─────────────┐
│ App name │ id │ mode │ PID │ status │ port │ restarted │ uptime │ memory │ watching │
├──────────────┼────┼─────────┼─────┼─────────┼──────┼───────────┼────────┼────────┼─────────────┤
│ server-watch │ 0 │ cluster │ 0 │ stopped │ │ 2 │ 0 │ 0 B │ unactivated │
└──────────────┴────┴─────────┴─────┴─────────┴──────┴───────────┴────────┴────────┴─────────────┘
Use `pm2 desc[ribe] <id>` to get more details
...........┌──────────────┬────┬─────────┬─────┬─────────┬──────┬───────────┬────────┬────────┬─────────────┐
│ App name │ id │ mode │ PID │ status │ port │ restarted │ uptime │ memory │ watching │
├──────────────┼────┼─────────┼─────┼─────────┼──────┼───────────┼────────┼────────┼─────────────┤
│ server-watch │ 0 │ cluster │ 0 │ stopped │ │ 2 │ 0 │ 0 B │ unactivated │
└──────────────┴────┴─────────┴─────┴─────────┴──────┴───────────┴────────┴────────┴─────────────┘
Use `pm2 desc[ribe] <id>` to get more details
######## ✘ process should not have been restarted on file change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment