Skip to content

Commit

Permalink
Merge pull request #36 from ceph/fix-uvicorn-server
Browse files Browse the repository at this point in the history
start_container.sh: fix 'Could not import module "main"' for uvicorn server
  • Loading branch information
zmc authored Nov 10, 2023
2 parents b7663d8 + d8d4346 commit 356deb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 356deb1

Please sign in to comment.