fix: call procfile-util correctly

This commit is contained in:
Jose Diaz-Gonzalez
2018-07-29 13:59:32 -04:00
parent c924bdef04
commit b6fe31f9cb
2 changed files with 2 additions and 2 deletions

View File

@@ -400,7 +400,7 @@ get_cmd_from_procfile() {
verify_app_name "$APP"
[[ ! -f $DOKKU_PROCFILE ]] && return
procfile-util show -p "$PROC_TYPE" --port "$PORT"
procfile-util show --procfile "$PROC_TYPE" --default-port "$PORT"
}
is_deployed() {

View File

@@ -24,7 +24,7 @@ extract_procfile() {
if [[ -f "$DOKKU_PROCFILE" ]]; then
dokku_log_info1_quiet "App Procfile file found ($DOKKU_PROCFILE)"
# shellcheck disable=SC2069
PROCFILE_ERRORS="$(procfile-util check "$DOKKU_PROCFILE" 2>&1 >/dev/null || true)"
PROCFILE_ERRORS="$(procfile-util check --procfile "$DOKKU_PROCFILE" 2>&1 >/dev/null || true)"
[[ -n "$PROCFILE_ERRORS" ]] && dokku_log_fail "${PROCFILE_ERRORS}"
else
dokku_log_info1_quiet "No Procfile found in app image"