From da07d44b48731f68302240b5d2d660fa1ac15640 Mon Sep 17 00:00:00 2001 From: Ben Donnelly Date: Thu, 23 Jan 2025 12:41:07 +0000 Subject: [PATCH] Update app-start.sh add option to set HOST for uvicorn start command --- scripts/app-start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/app-start.sh b/scripts/app-start.sh index fdd5a18f4..2e9cc6a28 100755 --- a/scripts/app-start.sh +++ b/scripts/app-start.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash export PORT=${PORT:-8000} +export HOST=${HOST:-"0.0.0.0"} export WORKERS=${WORKERS:-1} NUMREGEX="^[0-9]+$" @@ -25,7 +26,7 @@ fi ${OPTIONAL_TIMEOUT} \ uvicorn prepline_general.api.app:app \ --log-config logger_config.yaml \ - --host 0.0.0.0 \ + --host "$HOST" \ --port "$PORT" \ --workers "$WORKERS" \