poor man's retry

This commit is contained in:
Jeff Lindsay
2013-06-30 02:27:36 -05:00
parent fc396490dd
commit 7ecdba7387

View File

@@ -13,5 +13,9 @@ git commit -m 'initial commit'
REPO="test-$(basename $APP)-$RANDOM"
git remote add target git@$TARGET:$REPO
git push target master
URL=$(ssh dokku@$TARGET url $REPO)
sleep 2
./check_deploy "$(ssh dokku@$TARGET url $REPO)" && echo "-----> Deploy success!"
./check_deploy $URL && echo "-----> Deploy success!" || {
sleep 4
./check_deploy $URL && echo "-----> Deploy success!"
}