aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7c0a3bb..67475a1 100644
--- a/Makefile
+++ b/Makefile
@@ -30,4 +30,14 @@ cert-create:
.PHONY: dev-ssl
dev-ssl:
cd app && ln -sf config_dev.py config.py
- FLASK_APP=app python -m flask run --reload --debugger --cert=cert.pem --key=key.pem \ No newline at end of file
+ FLASK_APP=app python -m flask run --reload --debugger --cert=cert.pem --key=key.pem
+
+## Gunicorn Server with Uvicorn worker for FastAPI Support
+.PHONY: gunicorn
+gunicorn:
+ python -m gunicorn -w 1 api:app -k uvicorn.workers.UvicornWorker -b "0.0.0.0:8080" --reload
+
+## Uvicorn Server
+.PHONY: uvicorn
+uvicoen:
+ python -m uvicorn api:app --reload \ No newline at end of file