Skip to content
This repository was archived by the owner on Dec 10, 2020. It is now read-only.

yorknouse/deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

These are deployment scripts for parts of the Nouse website. The Deploy class has been partly stolen from Brandon Summers.

Usage

Sending a HTTP request to, for example, http://deploy.nouse.co.uk/nouse.php, will initiate a git pull. Any changes in the master Git branch will then be "deployed". GitHub Webhooks should be set up to automatically send a request whenever changes are pushed to GitHub.

www-data will need to be able to write to the target directory, and must have read access to the GitHub repository (using a deploy key if the repository is private. GitHub requires a different deploy key per repository - see the different keys in /var/www/.ssh/ and relevant configuration in /var/www/.ssh/config and each repository's .git/config file).

Although these scripts do allow commands to be run after deployments, an alternative is to use Git hooks on the server. For example, see .git/hooks/post-merge in the nouse repository, which installs any updated Composer dependencies after a deployment.

About

Deployment scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages