Skip to content

Instantly share code, notes, and snippets.

@inickey
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inickey/345f9de42eadd448f4c3 to your computer and use it in GitHub Desktop.
Save inickey/345f9de42eadd448f4c3 to your computer and use it in GitHub Desktop.
#!/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