Skip to content

PHP script to deploy web sites or applications using a post-commit hook

License

Notifications You must be signed in to change notification settings

ebner/git-deploy-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Git deploy script

This script automatically deploys web sites or code using Git. To be used as post-commit hook.

Inspired by markomarkovic/simple-php-git-deploy which has many more features, but is more complicated to use.

Requirements

  • git and rsync are required on the server that's running the script
  • The system user running PHP (e.g. www-data) needs to have the necessary access permissions for the TMP_DIR and TARGET_DIR locations on the server.
  • If the Git repo you wish to deploy is private, the system user running PHP also needs to have the right SSH keys to access the remote repository.

Usage

  • Configure the script and put it on a web server.
  • Configure your Git repository to call this script when the code is updated using a post-commit hook.

About

PHP script to deploy web sites or applications using a post-commit hook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages