Created
April 10, 2010 11:37
-
-
Save alcides/361981 to your computer and use it in GitHub Desktop.
Post-reveive hook to update the git repository and restart apache on WebFaction
This file contains 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
#!/bin/sh | |
git --git-dir /home/burocratik/webapps/mrg/mrgsite/.git --work-tree /home/burocratik/webapps/mrg/mrgsite reset --hard | |
PATH=/home/burocratik/webapps/mrg/apache2/bin:$PATH | |
restart |
As of 2016 this still works. Dead simple and works. Thank you!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks for the snippet! :)