Skip to content

Instantly share code, notes, and snippets.

@pfote
Created April 23, 2013 14:55
Show Gist options
  • Save pfote/5444238 to your computer and use it in GitHub Desktop.
Save pfote/5444238 to your computer and use it in GitHub Desktop.
sample deploy script
#!/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