aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2022-05-30 20:59:47 -0700
committerGravatar MarkKoz <[email protected]>2022-05-30 20:59:47 -0700
commit416eabe3ac6224a17875ab2ae466666afc62ca4d (patch)
tree197ae4bed9e57c83b839ed777d346dbd10d7cd9c
parentRemove redundant module for creating the WSGI app (diff)
Specify wsgi_app in Gunicorn config
-rw-r--r--Dockerfile2
-rw-r--r--config/gunicorn.conf.py1
-rw-r--r--pyproject.toml2
3 files changed, 3 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 7331ab4..2382b8b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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]