Skip to content

ericzon/github-auto-pull

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

Github Auto Pull

This script is based on the post by Jeffery Way on Nettuts+, The Perfect Workflow, with Git, GitHub, and SSH.

Github Auto Pull aims to provide a secure way as possible of having your project auto pull when you push a commit to Github.

Installing

  1. Copy the contents of github-pull.php into a file on your server, you can keep the original name but for increase security you should rename it.

  2. Now enter the URL of your server including the path to the github-pull.php file (or what ever you called it) and append it with the querystring ?passgen=PASSWORD (change PASSWORD to a random string). This will generate the salt and password for your file as well as give you the url for the service hook… which should be hany!

  3. Copy the contents of the first text box and paste that into the file (should be lines 7 and 8)

  4. Copy the contents of the second text box and go to https://github.com/USERNAME/PROJECT/admin/hooks (changing USERNAME and PROJECT accordinly) and click on "Post-Receive URLs" and paste the contents into one of the empty boxes. Click "Update Settings".

  5. That should be all ready to go and even if you publish the file with the keys, they might struggle sussing out the password thanks to the MD5 encoding and the somewhat secure crypt() file.


Github Auto Pull by Neil Sweeney is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published