Skip to content

Commit

Permalink
Update app-start.sh
Browse files Browse the repository at this point in the history
add option to set HOST for uvicorn start command
  • Loading branch information
Umaaz authored Jan 23, 2025
1 parent df09401 commit da07d44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/app-start.sh
Original file line number Diff line number Diff line change
@@ -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]+$"
Expand All @@ -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" \

Expand Down

0 comments on commit da07d44

Please sign in to comment.