diff options
author | 2024-07-07 23:33:37 +0100 | |
---|---|---|
committer | 2024-07-08 15:00:11 +0100 | |
commit | d04e74cd9a45d11d321faf174aec86768ac2ffc6 (patch) | |
tree | 4a075255d00d9f8a2f369567bdb79f6eefa4be9a | |
parent | Update to fix trailing whitespace detected by pre-commit (diff) |
Stop using gunicorn and use uvicorn directly to run application
-rw-r--r-- | Dockerfile | 2 | ||||
-rw-r--r-- | poetry.lock | 34 | ||||
-rw-r--r-- | pyproject.toml | 1 |
3 files changed, 2 insertions, 35 deletions
@@ -19,4 +19,4 @@ ENV GIT_SHA=$git_sha # Start the server with uvicorn ENTRYPOINT ["poetry", "run"] -CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:8000", "-k", "uvicorn.workers.UvicornWorker", "backend:app"] +CMD ["uvicorn", "backend:app", "--host", "0.0.0.0", "--port", "8000"] diff --git a/poetry.lock b/poetry.lock index cefd81e..6a3e2e0 100644 --- a/poetry.lock +++ b/poetry.lock @@ -126,27 +126,6 @@ testing = ["covdefaults (>=2.3)", "coverage (>=7.3.2)", "diff-cover (>=8.0.1)", typing = ["typing-extensions (>=4.8)"] [[package]] -name = "gunicorn" -version = "22.0.0" -description = "WSGI HTTP Server for UNIX" -optional = false -python-versions = ">=3.7" -files = [ - {file = "gunicorn-22.0.0-py3-none-any.whl", hash = "sha256:350679f91b24062c86e386e198a15438d53a7a8207235a78ba1b53df4c4378d9"}, - {file = "gunicorn-22.0.0.tar.gz", hash = "sha256:4a0b436239ff76fb33f11c07a16482c521a7e09c1ce3cc293c2330afe01bec63"}, -] - -[package.dependencies] -packaging = "*" - -[package.extras] -eventlet = ["eventlet (>=0.24.1,!=0.36.0)"] -gevent = ["gevent (>=1.4.0)"] -setproctitle = ["setproctitle"] -testing = ["coverage", "eventlet", "gevent", "pytest", "pytest-cov"] -tornado = ["tornado (>=0.2)"] - -[[package]] name = "h11" version = "0.14.0" description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" @@ -321,17 +300,6 @@ files = [ ] [[package]] -name = "packaging" -version = "24.1" -description = "Core utilities for Python packages" -optional = false -python-versions = ">=3.8" -files = [ - {file = "packaging-24.1-py3-none-any.whl", hash = "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124"}, - {file = "packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"}, -] - -[[package]] name = "platformdirs" version = "4.2.2" description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`." @@ -1002,4 +970,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.12" -content-hash = "88fdfb53c24083f67305ff9e01dfb0bff29874b2de3ef9afc2d45b76e7d7da68" +content-hash = "86bcd95d5baef49cc4c7efa6f791359af74e93f96f8f0ce9d8275c1e14e768ed" diff --git a/pyproject.toml b/pyproject.toml index 01dfed7..edea8a7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,6 @@ motor = "3.5.0" python-dotenv = "^1.0.1" pyjwt = "^2.8.0" httpx = "^0.27.0" -gunicorn = "^22.0.0" pydantic = "^1.10.17" spectree = "^1.2.10" deepmerge = "^1.1.1" |