1.3.2 • Published 6 years ago

@programmer5000/github-auto-pull v1.3.2

Weekly downloads
1
License
AGPL-3.0
Repository
github
Last release
6 years ago

github-auto-pull

Automagically pull and restart your program whenever git changes are made.

Usage

Download an executable for your platform from the releases page or run npm i -g @programmer5000/github-auto-pull. Then create the script you want to run:

echo "echo test" > script.sh
chmod +x script.sh
./github-auto-pull script.sh

If you get an EACCES error, try this:

sudo apt-get install libcap2-bin
sudo setcap cap_net_bind_service=+ep `readlink -f \`which node\``

github-auto-pull binds on port 80, which can usually only be bound by root. These commands allow node to bind on port 80. See also this StackOverflow post.

Otherwise, stop github-auto-pull.

Then go into your desired github repo. Create a webhook, setting your IP address as the URL. Make sure to set the content type to application/json. Then generate a random string and set that as your secret for the webhook.

./github-auto-pull script.sh INSERT_SECRET_HERE

Save the webhook and your console should tell you that you got a ping.

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago