Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Auto pull latest code from / to master branch using simple PHP and shell script.

Notifications You must be signed in to change notification settings

CodeWithGrid/webhook-deployer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Easy script to auto-pull latest code from github repo. This is tested and functional on MediaTemple's (gs) hosting platform.

Installation

  1. SSH to your server
  2. Remove default /html/ directory rm -rf html
  3. Clone your repo from github git clone [email protected]:[username]/[reponame].git - if you are asked for an SSH password, you need to edit your key to not require one.
  4. Make the new directory your web root cd .., mv [reponame] html
  5. Upload /webhook-deploy/ to your root
  6. Add webhook-deploy to .gitignore
  7. In github, go to Repository Settings -> Service Hooks -> WebHook URLs and add http://domain.com/webhook-deploy/auto.php

About

Auto pull latest code from / to master branch using simple PHP and shell script.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published