From 395a9d955e014a6e14d9e92ff22fd808bf1c8f49 Mon Sep 17 00:00:00 2001 From: Ari Date: Mon, 18 Jul 2022 13:30:33 -0400 Subject: [PATCH] swiching to hypercorn --- api/Makefile | 2 +- api/setup.py | 2 +- docker/bin/run.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/Makefile b/api/Makefile index b3f514e..c318519 100644 --- a/api/Makefile +++ b/api/Makefile @@ -43,4 +43,4 @@ clean: run-local: rm -f web ln -s ../webapp/build web - USE_EXAMPLE_REPO=1 $(VENV_BIN)/uvicorn src.app:app --reload + USE_EXAMPLE_REPO=1 $(VENV_BIN)/hypercorn src.app:app --reload diff --git a/api/setup.py b/api/setup.py index 86ed90b..deaea3c 100644 --- a/api/setup.py +++ b/api/setup.py @@ -7,7 +7,7 @@ setuptools.setup( "PyYAML==6.0", "fastapi==0.78.0", "pydantic==1.9.1", - "uvicorn[standard]==0.18.2", + "hypercorn==0.13.2", "python-decouple==3.6", ], extras_require={ diff --git a/docker/bin/run.sh b/docker/bin/run.sh index 5a1e3a3..342e2ed 100755 --- a/docker/bin/run.sh +++ b/docker/bin/run.sh @@ -7,4 +7,4 @@ echo "--------------------" echo "BUILD_VERSION = "$BUILD_VERSION echo $(python --version) echo "--------------------" -python -m uvicorn src.app:app --host "0.0.0.0" --port 8000 +python -m hypercorn src.app:app --host "0.0.0.0" --port 8000