This commit is contained in:
Heidi
2026-05-15 00:27:08 +01:00
parent 1cac33f480
commit ca574601d1
3 changed files with 76 additions and 15 deletions
+11
View File
@@ -25,6 +25,15 @@ The app name is `linkweb`. The GitHub webhook receiver is:
POST /webhook/github
```
On a valid webhook request, the server runs:
```sh
git pull --ff-only
npm install
npm run build
pm2 restart linkweb
```
Set `WEBHOOK_SECRET` in `ecosystem.config.cjs` if you want GitHub `x-hub-signature-256` verification:
```js
@@ -36,3 +45,5 @@ env: {
WEBHOOK_SECRET: 'your-secret',
}
```
You can also set `PM2_BIN`, `NPM_BIN`, or `GIT_BIN` if a command is not available on the production `PATH`.