From 08cf66823322a6c6b78a04c2f3508e0e3415c9de Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 5 Jan 2021 19:28:13 -0800 Subject: [PATCH] Use gunicorn as production runner --- docker-compose.yml | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9b8b9a44..d8dc6719 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,7 +35,7 @@ services: web: build: . env_file: .env - command: python manage.py runserver 0.0.0.0:8000 + command: gunicorn bookwyrm.wsgi:application --bind 0.0.0.0:8000 volumes: - .:/app - static_volume:/app/static diff --git a/requirements.txt b/requirements.txt index e5d7798d..3a557b02 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,7 @@ Django==3.0.7 django-model-utils==4.0.0 environs==7.2.0 flower==0.9.4 +gunicorn==20.0.4 Markdown==3.3.3 Pillow>=7.1.0 psycopg2==2.8.4