/webhook

Tiny server tool for automatic repo pulls

Primary LanguageJavaScript

webhook [Name subject to change]

tiny server tool for automatic repo pulls

Description

This app is designed as a simple webhook service. It allows you to automatically respond to code changes on many git platforms that support webhooks, such as:

...and many others!

Prerequisites

  • Node.js (LTS version or later)
  • npm/yarn/pnpm
  • [optional] pm2

Installation

Clone and install dependencies

git clone https://github.com/rngnrs/webhook
cd webhook
pnpm i

Setting environment variables

Create config.json file:

cp config.json.example config.json
# ...edit config.json as you wish...
node app 

Usage

  • Run script directly:
pnpm start
  • [pm2] Use pm2:
pm2 start app.js --name awoo-webhook
  • [systemd] Use self-made services:

Read your system manual.