Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,5 @@ RUN if [ $STATIC_BUILD = "TRUE" ] ; \
then SECRET_KEY=dummy_value uv run python manage.py distill-local build --traceback --force ; \
fi

CMD ["gunicorn", "--preload", "-b", "0.0.0.0:8000", \
"pydis_site.wsgi:application", "-w", "2", "--statsd-host", \
"graphite.default.svc.cluster.local:8125", "--statsd-prefix", "site", \
"--config", "file:gunicorn.conf.py"]
CMD ["waitress-serve", "--listen", "*:8000", \
"--max-request-body-size=52428800", "pydis_site.wsgi:application"]
10 changes: 0 additions & 10 deletions gunicorn.conf.py

This file was deleted.

2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class SiteManager:
Manages the preparation and serving of the website for local use.

This class is used solely for setting up the development
environment. In production, gunicorn is invoked directly
environment. In production, the WSGI server is invoked directly
and migrations are handled in an init container.

Usage:
Expand Down
2 changes: 1 addition & 1 deletion pydis_site/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ the website:
determine _which URLs will lead to which Django views_.

- [`wsgi.py`](./wsgi.py), which serves as an adapter for
[`gunicorn`](https://github.com/benoitc/gunicorn),
[`waitress`](https://github.com/Pylons/waitress),
[`uwsgi`](https://github.com/unbit/uwsgi), or other application servers to run
our application in production. Unless you want to test an interaction between
our application and those servers, you probably won't need to touch this.
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ dependencies = [
"django-prometheus==2.4.1",
"django-simple-bulma==2.6.0",
"djangorestframework==3.16.0",
"gunicorn==24.1.1",
"httpx==0.28.1",
"markdown==3.8.2",
"psycopg[binary]==3.2.9",
Expand All @@ -22,6 +21,7 @@ dependencies = [
"python-frontmatter==1.1.0",
"pyyaml==6.0.2",
"sentry-sdk==2.33.0",
"waitress==3.0.2",
"whitenoise==6.9.0",
]

Expand Down Expand Up @@ -76,7 +76,6 @@ select = ["ANN", "B", "C4", "D", "DJ", "DTZ", "E", "F", "ISC", "INT", "N", "PGH"
"pydis_site/apps/**/tests/test_*.py" = ["ANN", "D"]
"static-builds/netlify_build.py" = ["T201"]
"pydis_site/apps/api/tests/test_off_topic_channel_names.py" = ["RUF001"]
"gunicorn.conf.py" = ["ANN", "D"]
"pydis_site/apps/api/models/bot/off_topic_channel_name.py" = ["RUF001"]

[tool.taskipy.tasks]
Expand Down
34 changes: 11 additions & 23 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.