chore: follow logging pattern from heroku for phase command declarations

This commit is contained in:
Jose Diaz-Gonzalez
2019-03-12 12:34:45 -04:00
parent 6797971016
commit 7f1fe3ccfd
2 changed files with 13 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ execute_script() {
return
fi
dokku_log_info1 "Running '$SCRIPT_CMD' in app container"
dokku_log_exclaim "${PHASE_SCRIPT_KEY^} command declared: '$SCRIPT_CMD'"
local COMMAND
COMMAND="set -eo pipefail; [[ \$DOKKU_TRACE ]] && set -x ; "
COMMAND+=" if [[ -d '/app' ]]; then "