Created
February 9, 2009 20:55
-
-
Save kevinold/60985 to your computer and use it in GitHub Desktop.
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
| #!/bin/bash | |
| # NOTE: for pushd and popd to work either change the line above to #!/bin/bash | |
| # or make sure that /bin/sh points to /bin/bash | |
| # | |
| # To enable this hook, rename this file to "post-update". | |
| WORKDIR="/home/kevin/houses" | |
| export GIT_DIR="$WORKDIR/.git" | |
| pushd $WORKDIR > /dev/null | |
| git pull | |
| popd > /dev/null | |
| sudo rm -rf /tmp/obj/* /tmp/cache/* /tmp/houses.cache | |
| sudo /etc/init.d/houses_prod.sh stop | |
| sudo /etc/init.d/houses_prod.sh start | |
| exec git-update-server-info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment