Skip to content

Instantly share code, notes, and snippets.

@jhsu
Created October 6, 2010 16:46
Show Gist options
  • Save jhsu/613661 to your computer and use it in GitHub Desktop.
Save jhsu/613661 to your computer and use it in GitHub Desktop.
environment="development"
if [[ -s REVISION ]] ; then
revision=$(cat REVISION )
else
revision=$(git log --no-color -1 | head -n 1 | cut -c 7-47)
fi
TO="$environment" REVISION="$revision" rake hoptoad:deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment