Skip to content

Commit

Permalink
Include --recent app logs in errand output if app fails to start
Browse files Browse the repository at this point in the history
Fixes #104
  • Loading branch information
guidowb committed Oct 12, 2016
1 parent 1a3fe3b commit f4bda91
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tile_generator/templates/jobs/deploy-all.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,14 @@ function deploy_app() {
function start_app() {
PKG_NAME="$1"
APP_NAME="$2"
cf start ${APP_NAME}
echo cf start ${APP_NAME}
$CF start ${APP_NAME}
result="$?"
if [ "$result" -ne "0" ]; then
echo cf logs ${APP_NAME} --recent
$CF logs ${APP_NAME} --recent
exit $result
fi
wait_till_running ${APP_NAME}
delete_older_versions ${PKG_NAME} ${APP_NAME}
}
Expand Down

0 comments on commit f4bda91

Please sign in to comment.