This commit is contained in:
2026-05-14 21:02:17 +01:00
parent c165c97d9c
commit ba487d1f8b
2 changed files with 26 additions and 6 deletions
+8 -1
View File
@@ -85,7 +85,7 @@ The default deploy flow is:
```sh
git pull --ff-only
npm install --include=dev
npm install --production=false --include=dev --omit=optional
npm run build
pm2 reload tssbot-web --update-env
```
@@ -94,6 +94,13 @@ Only processes listed in `PM2_RESTART_TARGETS` are reloaded. The default is
`tssbot-web`, so unrelated PM2 processes are left alone. The webhook exits after
24 hours so PM2 restarts it cleanly.
When webhook code changes are deployed, restart the webhook process once so PM2
loads the updated listener:
```sh
pm2 reload tssbot-webhook --update-env
```
The webhook listener reads `.env` on startup. To send a Discord notification
whenever the listener starts or restarts, set: