From d8d43463f5c274d05c08591e04ec414bd18ae758 Mon Sep 17 00:00:00 2001 From: Vallari Agrawal Date: Tue, 7 Nov 2023 20:18:53 +0530 Subject: [PATCH] start_container.sh: fix 'Could not import module "main"' for uvicorn server fixes: https://github.com/ceph/teuthology-api/issues/35 Signed-off-by: Vallari Agrawal --- start_container.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start_container.sh b/start_container.sh index 4c31cb1..5b5cd42 100644 --- a/start_container.sh +++ b/start_container.sh @@ -9,7 +9,7 @@ PORT=${TEUTHOLOGY_API_SERVER_PORT:-"8080"} cd /teuthology_api/src/ if [ "$DEPLOYMENT" = "development" ]; then - uvicorn main:app --reload --port $PORT --host $HOST + uvicorn teuthology_api.main:app --reload --port $PORT --host $HOST else gunicorn -c /teuthology_api/gunicorn_config.py teuthology_api.main:app fi