Skip to content

Commit

Permalink
improve deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
nzinov committed Nov 5, 2014
1 parent 08c7a64 commit b2898ab
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,20 @@ echo "Check if all your changes have been commited"
echo "Master branch will be deployed to the production server"
confirm "Are you sure you want to deploy?" &&
git stash &&
git checkout master &&
git fetch -t &&
loc=$(git rev-parse HEAD)
orig=$(git rev-parse @{u})
git checkout production &&
git fetch &&
loc=$(git rev-parse master)
orig=$(git rev-parse origin/master)
if test "$orig" != "$loc"; then
echo "Your master branch isn't up-to-date with origin"
echo "Aborting"
abort_deploy;
fi
confirm "Are you still sure?" &&
git merge master --ff-only &&
appcfg.py update . -A the-hat -V 3 --oauth2
git tag -f production
git push -t production
git push
git checkout master
git stash pop


0 comments on commit b2898ab

Please sign in to comment.