A Simple Script for Deploying Code With Github’s WebHooks
Learning source control with Git has completely changed how I build things. I was recently trying to hunt down an easy way to push up new code to my servers rather than sitting in an SSH session repeatedly running
git pull
to grab the latest files.Enter WebHooks. The idea is that when code gets committed to a repo, Github will send a POST request to a URL. In this (very simple) case, you can have it hit a script that can execute your
git pull
command.