Skip to content

Commit

Permalink
feat(improving-dev-environment): Add note about stoping pm2 app (disc…
Browse files Browse the repository at this point in the history
  • Loading branch information
Renal-Of-Loon authored Oct 26, 2021
1 parent c1abfa3 commit 1320841
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions guide/improving-dev-environment/pm2.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ The `pm2 start` command can take more optional parameters, but only these two ar

Once the process launches with pm2, you can run `pm2 monit` to monitor all console outputs from the processes started by pm2. This accounts for any `console.log()` in your code or outputted errors.

In a similar fashion to how you start the process, running `pm2 stop` will stop the current process without removing it from PM2's interface:

```sh:no-line-numbers
pm2 stop your-app-name.js
```

## Setting up booting with your system

Perhaps one of the more useful features of PM2 is being able to boot up with your Operating System. This feature will ensure that your bot processes will always be started after an (unexpected) reboot (e.g., after a power outage).
Expand Down

0 comments on commit 1320841

Please sign in to comment.