Make gunicorn properly report errots

pull/1/head
palid 2023-07-17 15:47:29 +02:00
parent f7688262e4
commit c15f1bb840
Signed by: palid
SSH Key Fingerprint: SHA256:Mus3wCd2x6nxtARI0DpWGT7lIWbNy3R90BVDg0j35PI
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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: