Files
2026-05-15 00:27:08 +01:00

822 B

Toothless' Bot Home

React + Vite + Tailwind link home running on port 3020.

Local

npm install
npm run build
npm run serve

Open http://localhost:3020.

PM2

npm run build
pm2 start ecosystem.config.cjs

The app name is linkweb. The GitHub webhook receiver is:

POST /webhook/github

On a valid webhook request, the server runs:

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:

env: {
  NODE_ENV: 'production',
  PORT: '3020',
  PM2_APP_NAME: 'linkweb',
  WEBHOOK_PATH: '/webhook/github',
  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.