fix: silence stderr when fetching a command from the Procfile

When deploying, if the procfile-get-command fails for a given process, this causes an error to output to stderr. We instead silence this as the error isn't important.
This commit is contained in:
Jose Diaz-Gonzalez
2021-09-29 00:48:26 -04:00
parent 892391a7fd
commit 06742cfcc4

View File

@@ -218,7 +218,7 @@ fn-scheduler-docker-local-extract-start-cmd() {
fi
DOKKU_DOCKERFILE_START_CMD=$(config_get "$APP" DOKKU_DOCKERFILE_START_CMD || true)
DOKKU_PROCFILE_START_CMD=$(plugn trigger procfile-get-command "$APP" "$PROC_TYPE" "$PORT")
DOKKU_PROCFILE_START_CMD=$(plugn trigger procfile-get-command "$APP" "$PROC_TYPE" "$PORT" 2>/dev/null || echo '')
START_CMD=${DOKKU_DOCKERFILE_START_CMD:-$DOKKU_PROCFILE_START_CMD}
echo "$START_CMD"
}