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
2013-11-28 11:20:09 -08:00
parent c317dca558
commit dd356d02ee

4
dokku
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