diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |