Clean up first. This allows users to get logs from failed runs before they're wiped out. Ref: #354

This commit is contained in:
rhy-jot committed 2013-11-28 11:20:09 -08:00
1 parent c317dca558
commit dd356d02ee
1 file changed
+2 -2
+2 -2
View File
@@ -15,14 +15,14 @@ fi
case "$1" in
receive)
APP="$2"; IMAGE="app/$APP"
echo "-----> Cleaning up ..."
dokku cleanup
echo "-----> Building $APP ..."
cat | dokku build $APP $IMAGE
echo "-----> Releasing $APP ..."
dokku release $APP $IMAGE
echo "-----> Deploying $APP ..."
dokku deploy $APP $IMAGE
echo "-----> Cleaning up ..."
dokku cleanup
echo "=====> Application deployed:"
echo " $(dokku url $APP)"
echo