Created
November 23, 2011 02:20
-
-
Save gonzedge/1387735 to your computer and use it in GitHub Desktop.
Deploying on shared servers with git
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
| if [ -d "$HOME/git/bin-wrappers" ]; then | |
| PATH="$PATH:$HOME/git/bin-wrappers" | |
| fi |
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
| cd ~/git | |
| make prefix=/usr all |
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
| git push production master |
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
| wget http://github.com/git/git/zipball/v1.7.7.4 -O ~/v1.7.7.4.zip |
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
| cd ~ | |
| unzip v1.7.7.4 | |
| mv git-git-* git |
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
| 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