Skip to content

Commit 0fd7a88

Browse files
committed
Use uvicorn for running llmstack
1 parent 74893ac commit 0fd7a88

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docker/api/docker-entrypoint.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ apiserver() {
2020
python manage.py clearcache
2121
fi
2222

23-
if [ "x$AUTORELOAD" = 'xTrue' ] && [ "x$SINGLE_THREAD" = 'xFalse' ]; then
24-
uvicorn llmstack.server.asgi:application --reload --port 9000 --host 0.0.0.0 --reload-dir /code
25-
elif [ "x$AUTORELOAD" = 'xFalse' ] && [ "x$SINGLE_THREAD" = 'xTrue' ]; then
23+
if [ "x$AUTORELOAD" = 'xFalse' ] && [ "x$SINGLE_THREAD" = 'xTrue' ]; then
2624
python manage.py runserver --nothreading --noreload 0.0.0.0:9000
2725
else
28-
/usr/local/bin/gunicorn llmstack.server.asgi:application -w 6 -b :9000 --timeout 0 -k uvicorn.workers.UvicornWorker
26+
uvicorn llmstack.server.asgi:application --reload --port 9000 --host 0.0.0.0 --reload-dir /code
2927
fi
3028
}
3129

0 commit comments

Comments
 (0)