Skip to content

Commit

Permalink
Fail on deploy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Dec 12, 2014
1 parent a664122 commit a03bc1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ npm install -g scp2

for f in out/*; do
# Deploy to the commit snapshot location
scp2 $f $DESTINATION:$WEB_ROOT/$COMMITS_DIR/$SHA/
scp2 $f $DESTINATION:$WEB_ROOT/$COMMITS_DIR/$SHA/ || exit 1
echo "Deployed $f to /$COMMITS_DIR/$SHA/"

if [ $BRANCH != "master" ] ; then
# Deploy to the branch snapshot location, if not master
scp2 $f $DESTINATION:$WEB_ROOT/$BRANCHES_DIR/$BRANCH/
scp2 $f $DESTINATION:$WEB_ROOT/$BRANCHES_DIR/$BRANCH/ || exit 1
echo "Deployed $f to /$BRANCHES_DIR/$BRANCH/"
else
# Deploy master to the root
scp2 $f $DESTINATION:$WEB_ROOT/
scp2 $f $DESTINATION:$WEB_ROOT/ || exit 1
echo "Deployed $f to /"
fi
done

0 comments on commit a03bc1b

Please sign in to comment.