Skip to content

the86freak/git-deploy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Git Auto Deployment Git duto deployment using POST deploy hooks that are offered by GitHub and BitBucket.


Install

  • create a directory for deployment control site
mkdir /var/www/deploy
cd /var/www/deploy
  • clone this repo
git clone [email protected]:lkwdwrd/git-deploy.git .
  • setup apache/nginx/other web-server site (ex. deploy.some.site) to /var/www/deploy

Setup

  • fill deploy config with your repos
$repos = array(
    'prism-code-highlighting' => array(
        'branch' => 'master',
        'path' => '/home/usr/example/wpcopilot.net/wp-content/plugins/prism-code-highlighting/'
    ),
    'another-plugin' => array(
        'branch' => 'deploy',
        'remote' => 'bbremote',
        'path' => '/home/usr/example/wpcopilot.net/wp-content/plugins/another-plugin/'
    )
);

Private repos

  • create local ssh key
ssh-keygen -t rsa -f ~/.ssh/id_rsa -C 'Bitbucket deploy'
  • add public key as Deploy Key to your repo

More: https://confluence.atlassian.com/pages/viewpage.action?pageId=271943168

Usage

  • commit and push

More information

http://wpcopilot.net/git-auto-deployment/

About

Git Deploy Script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published