fix
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user