We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a0f3b7 commit a189c87Copy full SHA for a189c87
scripts/app-start.sh
@@ -1,6 +1,7 @@
1
#!/usr/bin/env bash
2
3
export PORT=${PORT:-8000}
4
+export WORKERS=${WORKERS:-1}
5
6
NUMREGEX="^[0-9]+$"
7
GRACEFUL_SHUTDOWN_PERIOD_SECONDS=3600
@@ -25,7 +26,8 @@ ${OPTIONAL_TIMEOUT} \
25
26
uvicorn prepline_general.api.app:app \
27
--log-config logger_config.yaml \
28
--host 0.0.0.0 \
- --port "$PORT"
29
+ --port "$PORT" \
30
+ --workers "$WORKERS" \
31
32
echo "Server was shutdown"
33
[ -n "$MAX_LIFETIME_SECONDS" ] && echo "Reached timeout of $MAX_LIFETIME_SECONDS seconds"
0 commit comments