Skip to content

Instantly share code, notes, and snippets.

@gonzedge
Created November 23, 2011 02:20
Show Gist options
  • Save gonzedge/1387735 to your computer and use it in GitHub Desktop.
Save gonzedge/1387735 to your computer and use it in GitHub Desktop.
Deploying on shared servers with git
if [ -d "$HOME/git/bin-wrappers" ]; then
PATH="$PATH:$HOME/git/bin-wrappers"
fi
cd ~/git
make prefix=/usr all
git push production master
wget http://github.com/git/git/zipball/v1.7.7.4 -O ~/v1.7.7.4.zip
cd ~
unzip v1.7.7.4
mv git-git-* git
gem install git-deploy
git add remote production [email protected]:/path/to/app
git deploy setup -r production
git deploy init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment