npm i -g @kbye/ghcd
- Start up the listening server with
ghcd -p <port-number> -e <path-to-script>
Create a script at
path-to-scriptthat updates your source code and runs the commands to stop and re-deploy your app.
port-numberon your server for HTTP requests.
<server-URL>:<port-number>to github webhooks on your project's repository to send a POST request on github events.
If everything has gone correctly, the script at
path-to-script will execute when you trigger your github webhook.
Port number to listen for POST requests on
Path to script
Path to script to execute on POST request
This is a temporary solution for continuous delivery.
Currently there's no secret support.
- Secret Support
- Support github option to send a secret to verify against before executing script