Merge pull request 'tweak: Add flag to pm2 setup command & improve docs slightly.' (#376) from NunoSempere/teddit:nunosempere-docs-tweak into main

Reviewed-on: https://codeberg.org/teddit/teddit/pulls/376
This commit is contained in:
teddit 2023-01-01 20:27:40 +00:00
commit 572068aca4
1 changed files with 7 additions and 3 deletions

View File

@ -201,11 +201,15 @@ You can also run teddit from a process manager like [pm2](https://www.npmjs.com/
```
## To run:
npm install pm2 -g
pm2 start app.js
pm2 start app.js --name teddit
## To run on startup:
pm2 startup
pm2 save
pm2 save ## if using systemd, see below.
## To restart or stop
pm2 restart teddit
pm2 stop teddit
```
See also the [pm2 instructions for running a project on startup](https://pm2.keymetrics.io/docs/usage/startup/), and in particular the section on waiting for your machine to connect to its network.
See also the [pm2 instructions for running a project on startup](https://pm2.keymetrics.io/docs/usage/startup/). In particular, if using systemd, see the section on how to modify the systemd init file so that it runs after your system connects to the network.