Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Simple git deployment script

Simple and secure post-receive hook. The script is written in PHP and allows you to automatically deploy a github, bitbucket, gitlab or any other git hosted repo to a production server.

The script uses a GET request to authenticate Github to do a "git push", so any stranger donsn't push the repo accidentally.

Usage

  • Configure deploy.php with a new secure key in the GET-request code on line 7.
  • Upload deploy.php to the webserver and put it somewhere in the root of youre website e.g. /var/www/yourewebsite.
  • Go to WebHooks in Github or any other service and set the post-recive url to http://example.com/deploy.php?YOURESECUREKEY

About

Simple post-receive hook. The script is written in PHP and allows you to automatically deploy a github, bitbucket, gitlab or any other git hosted repo to a production server.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages