Created
April 23, 2013 14:55
-
-
Save pfote/5444238 to your computer and use it in GitHub Desktop.
sample deploy script
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/sh | |
# script zum lifestellen | |
cd /var/www/ypsilon_git | |
revision=$1 | |
host=`hostname` | |
if [ x$revision == 'x' ]; then | |
revision='master' | |
fi | |
git checkout master | |
git pull origin | |
git checkout $revision | |
rm -rf /var/tmp/smarty/templates_c/* | |
echo "$host; revision checked out: " | |
git log -1 --pretty=oneline |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment