From cec0ae24814ca0f20249a1d59ae5a263c5486168 Mon Sep 17 00:00:00 2001 From: Michael Pilosov Date: Mon, 2 Sep 2024 02:21:43 +0000 Subject: [PATCH] hypercorn --- app/makefile | 10 +++++++++- requirements.txt | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/makefile b/app/makefile index 8ea0bd4..ea09543 100644 --- a/app/makefile +++ b/app/makefile @@ -1,5 +1,13 @@ -start: +start: hypercorn + +gevent: gunicorn --worker-class gevent --bind 0.0.0.0:9021 app:app +gthread: + gunicorn --worker-class gthread --threads 4 --bind 0.0.0.0:9021 app:app + +hypercorn: + hypercorn --bind 0.0.0.0:9021 app:app + dev: python app.py diff --git a/requirements.txt b/requirements.txt index 738e665..c8320a2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,5 +7,7 @@ moviepy==1.0.3 pillow==10.3.0 requests==2.32.3 httpx==0.27.0 +# uvicorn==0.28.1 +hypercorn==0.17.3 # imageio==2.34.1 # griffe>=0.20.0,<1.0.0 \ No newline at end of file