Skip to content

Commit a902354

Browse files
committed
feat(medcat-service): Support any extra args to gunicorn with env var
1 parent 9c46534 commit a902354

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

medcat-service/start_service_production.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ SERVER_ACCESS_LOG_FORMAT="%(t)s [ACCESS] %(h)s \"%(r)s\" %(s)s \"%(f)s\" \"%(a)s
5050
#
5151
# Using Gunicorn, even though FastAPI recommends Uvicorn, to keep support for the post_fork config
5252
echo "Starting up the service using gunicorn server ..."
53+
set -x
54+
5355
exec gunicorn \
5456
--bind "$SERVER_HOST:$SERVER_PORT" \
5557
--workers="$SERVER_WORKERS" \
@@ -62,5 +64,6 @@ exec gunicorn \
6264
--config /cat/config.py \
6365
--max-requests="$SERVER_GUNICORN_MAX_REQUESTS" \
6466
--max-requests-jitter="$SERVER_GUNICORN_MAX_REQUESTS_JITTER" \
67+
${SERVER_GUNICORN_EXTRA_ARGS:-} \
6568
--worker-class uvicorn.workers.UvicornWorker \
6669
medcat_service.main:app

0 commit comments

Comments
 (0)