Skip to content

Instantly share code, notes, and snippets.

@dprabu17
Created April 17, 2014 18:47
Show Gist options
  • Save dprabu17/11004257 to your computer and use it in GitHub Desktop.
Save dprabu17/11004257 to your computer and use it in GitHub Desktop.
git-deploy
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