Skip to content

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

Notifications You must be signed in to change notification settings

yasarshaikh78657/webhook-deployer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 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 git@github.com:[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. Make the directory save your web root `` cd .., mv [reponame] html `
  6. Upload /webhook-deploy/ to your root
  7. Add webhook-deploy to .gitignore
  8. 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

Languages

  • PHP 77.1%
  • Shell 22.9%