diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-05 18:55:06 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-05 18:55:06 +0530 |
commit | 760437326d499427cc40ffd7db6482d65e945338 (patch) | |
tree | 767a73b15eb285211587898b9f3a42f0c9a6f34f | |
parent | 0ece5d57c780b9c5500ae103eb036aeb83e5c87e (diff) |
add uvicorn command
-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 |