Skip to content

Commit 4291fe6

Browse files
authored
Update app-start.sh (#486)
add option to set HOST for uvicorn start command We want to control the host for our deployment.
1 parent df09401 commit 4291fe6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: scripts/app-start.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22

33
export PORT=${PORT:-8000}
4+
export HOST=${HOST:-"0.0.0.0"}
45
export WORKERS=${WORKERS:-1}
56

67
NUMREGEX="^[0-9]+$"
@@ -25,7 +26,7 @@ fi
2526
${OPTIONAL_TIMEOUT} \
2627
uvicorn prepline_general.api.app:app \
2728
--log-config logger_config.yaml \
28-
--host 0.0.0.0 \
29+
--host "$HOST" \
2930
--port "$PORT" \
3031
--workers "$WORKERS" \
3132

0 commit comments

Comments
 (0)