Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pm2 production Ready Commands #2178

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 19 additions & 17 deletions pm2.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,25 @@ updated: 2020-05-08

### Actions

| Command | Description |
| --- | --- |
| `pm2 stop all` | Stop all processes |
| `pm2 restart all` | Restart all processes |
| --- | --- |
| `pm2 reload all` | Will 0s downtime reload (for NETWORKED apps) |
| --- | --- |
| `pm2 stop 0` | Stop specific process id |
| `pm2 restart 0` | Restart specific process id |
| --- | --- |
| `pm2 delete 0` | Will remove process from pm2 list |
| `pm2 delete all` | Will remove all processes from pm2 list |
| --- | --- |
| `pm2 save` | Save processes list to respawn at reboot |
| --- | --- |
| `pm2 reset` | reset the restart counter |
| `pm2 reset all` | reset all restart counters |
| Command | Description |
| --- | --- |
| `pm2 stop all` | Stop all processes |
| `pm2 restart all` | Restart all processes |
| --- | --- |
| `pm2 reload all` | Will 0s downtime reload (for NETWORKED apps) |
| --- | --- |
| `pm2 stop 0` | Stop specific process id |
| `pm2 restart 0` | Restart specific process id |
| --- | --- |
| `pm2 delete 0` | Will remove process from pm2 list |
| `pm2 delete all` | Will remove all processes from pm2 list |
| --- | --- |
| `pm2 save` | Save processes list to respawn at reboot |
| --- | --- |
| `pm2 reset` | reset the restart counter |
| `pm2 reset all` | reset all restart counters |
| `pm2 resurrect` | Run previously saved processes (via pm2 save) |
| `pm2 startup` | Generate startup script to auto-start PM2 on reboot |

### Misc

Expand Down