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