From c15f1bb8400d3e4c621f87ebd4c14f6aeae08262 Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Mon, 17 Jul 2023 15:47:29 +0200 Subject: [PATCH] Make gunicorn properly report errots --- Dockerfile | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8568116..75ec9f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,4 +15,4 @@ ADD . /code/ RUN python -m pip install gunicorn RUN python manage.py collectstatic -CMD bash -c "python manage.py migrate && gunicorn -b 0.0.0.0:8000 spejstore.wsgi:application" +CMD bash -c "python manage.py migrate && gunicorn -b 0.0.0.0:8000 --capture-output --error-logfile - --access-logfile - spejstore.wsgi:application" diff --git a/docker-compose.yml b/docker-compose.yml index ccc6df8..2598928 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: web: build: . restart: always - command: bash -c "python manage.py migrate && gunicorn -b 0.0.0.0:8000 spejstore.wsgi:application" + command: bash -c "python manage.py migrate && gunicorn -b 0.0.0.0:8000 --capture-output --error-logfile - --access-logfile - spejstore.wsgi:application" volumes: - .:/code ports: