Skip to content

pjdicke/github-deploy-scripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview:

Perform 'git pull' on remote version of a repository through a php script.

Installation:

Copy github.php and github.config.php to the base of your checked out code on your server.  You then will need to setup a service hook on your github repo.  (Admin -> Service Hooks -> Post-Receive URLs)  Point the hook to the location of github.php (http://www.yourdomain.com/github.php)

Configuration:

github.config.php:

enabled -> Kill switch (on == deploy)
to_email ->  Email Address to send deployment notifications to.
from_email -> Email Address used as from ([email protected])
site_name -> Name for your site
limit_users -> flag to only allow whitelisted users to deploy
valid_users -> array of valid github usernames that are allowed to deploy from push.

About

PHP Deploy (git pull script) - Post Push Service Hook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published