forked from nllarson/github-deploy-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
18 lines (12 loc) · 773 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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.