Last active
August 29, 2015 14:07
-
-
Save inickey/345f9de42eadd448f4c3 to your computer and use it in GitHub Desktop.
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/bash | |
# post-update hook for deployment | |
DEPLOYMENT_PATH=/var/www/ | |
unset GIT_DIR | |
cd ${DEPLOYMENT_PATH} || exit | |
echo "*** Deploying your changes ***" | |
echo "*** Path: " ${DEPLOYMENT_PATH} " ***" | |
git pull origin master | |
echo "*** Deploying success ***" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment