This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
github-auto-deploy with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
gad </path/to/repo> [</path/to/post-deploy.sh>]
github-auto-deploy runs a small node webserver that responds to deployment requests from Github and updates the local repository.
A post-deploy script can also be used to finish a deployment after code has been updated.
PORT=1234 SECRET="Swifty4Lyfe" gad /var/app /var/app/bin/deploy.sh
The webserver can be configured with some environmental variables.
PORT- The port that the server runs on. Default: 3420
SECRET- The webhook secret. Default: none
On Github, you'll need to:
Note: By default, the Github Auto-Deployment service will create deployments every time code is pushed to
master, but can also be configured to deploy on status contexts, like
ci/travis-ci, which means we can require tests to pass before a deploy will run.