Push to Deploy
- On your server
- Get the post-receive file from this Gist.
- Make sure the file can be executed:
chmod +x post-receive
- Edit the paths in the file, relating them to your own project.
This repository also has a PHP version (
post-receive.php) that you could use with a GitHub webhook. Make sure to exclude that file in your .gitignore file if you decide to use it.