Skip to content

Instantly share code, notes, and snippets.

@alcides
Created April 10, 2010 11:37
Show Gist options
  • Save alcides/361981 to your computer and use it in GitHub Desktop.
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
#!/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
@manikos
Copy link

manikos commented May 1, 2016

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