diff options
author | 2022-05-30 20:59:47 -0700 | |
---|---|---|
committer | 2022-05-30 20:59:47 -0700 | |
commit | 416eabe3ac6224a17875ab2ae466666afc62ca4d (patch) | |
tree | 197ae4bed9e57c83b839ed777d346dbd10d7cd9c | |
parent | Remove redundant module for creating the WSGI app (diff) |
Specify wsgi_app in Gunicorn config
-rw-r--r-- | Dockerfile | 2 | ||||
-rw-r--r-- | config/gunicorn.conf.py | 1 | ||||
-rw-r--r-- | pyproject.toml | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -67,7 +67,7 @@ COPY config/ /snekbox/config/ FROM venv ENTRYPOINT ["gunicorn"] -CMD ["-c", "config/gunicorn.conf.py", "snekbox.api:SnekAPI"] +CMD ["-c", "config/gunicorn.conf.py"] COPY . /snekbox WORKDIR /snekbox diff --git a/config/gunicorn.conf.py b/config/gunicorn.conf.py index 5812c07..8b40d35 100644 --- a/config/gunicorn.conf.py +++ b/config/gunicorn.conf.py @@ -3,3 +3,4 @@ bind = "0.0.0.0:8060" logger_class = "snekbox.utils.gunicorn.GunicornLogger" access_logformat = "%(m)s %(U)s%(q)s %(s)s %(b)s %(L)ss" access_logfile = "-" +wsgi_app = "snekbox.api:SnekAPI" diff --git a/pyproject.toml b/pyproject.toml index abcf04f..ac28b6e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ dependencies = [ ] [project.optional-dependencies] -gunicorn = ["gunicorn>=20"] +gunicorn = ["gunicorn>=20.1"] # Lowest which supports wsgi_app in config. sentry = ["sentry-sdk[falcon]>=1.5.4"] [project.urls] |