robloach / git-deploy
Deploy and manage git deployments.
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.3.0
- cpliakas/git-wrapper: ~1.4.1
- symfony/console: ~2.6.4
README
Deploy and maintain a number of git repositories through PHP.
Requirements
- PHP 5.4 or greater
- Composer
Installation
-
Install Composer:
$ php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
-
Use Composer to install Git Deploy:
$ php composer.phar create-project robloach/git-deploy
Usage
-
Create a
git-deploy.json
file:{ "mywebsite": "https://github.com/my/website.git", "myotherwebsite": { "repo": "https://github.com/my/otherwebsite.git" }, "mythirdwebsite": { "repo": "https://github.com/my/otherwebsite.git", "branches": [ "branch1", "branch2" ] }, "myfourthwebsite": { "repo": "https://github.com/my/otherwebsite.git", "branches": { "branch1": "path/to/destination/branch1", "branch2": "path/to/destination/branch2", "branch3": "path/to/destination/branch3" } } }
-
Execute Git Deploy to deploy all sites:
gh-pages-deploy/bin/gh-pages-deploy deploy
-
Set up a cron job to deploy every once in a while.
gh-pages-deploy/bin/gh-pages-deploy deploy
License
Licensed under the incredibly permissive MIT license
Copyright © Rob Loach (http://robloach.net)