Created
April 17, 2014 18:47
-
-
Save dprabu17/11004257 to your computer and use it in GitHub Desktop.
git-deploy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/mislav/git-deploy | |
gem install git-deploy | |
1. Create a git remote for where you'll push the code on your server. | |
git remote add production "[email protected]:/home/webapps/www/git-deploy" | |
2. This will initialize the remote git repository in the deploy directory | |
git deploy setup -r "production" | |
3.This generates default deploy callback scripts | |
git deploy init | |
4.Push the code. | |
git push production master | |
Login to your server and manually perform necessary one-time administrative operations |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment