Small Sinatra app to auto-pull fresh code upon pushes to a GitHub repo.
Execute bundle install to install all dependencies.
Open up config.yaml and set:
repo_dirto the path of your local Git repositorytokento a secret valueuserto a local user that can pull from the GitHub project (i.e. has the proper SSH keys)
Optionally, you can specify a file to be touched after every pull request.
Execute rackup from inside the AutoPull directory.
Pass the following URL to the 'Post-Receive URLs' hook: http://<host>/?token=<token>