1
0
Fork 0

Make gunicorn properly report errots

This commit is contained in:
Dariusz Niemczyk 2023-07-17 15:47:29 +02:00
parent f7688262e4
commit c15f1bb840
No known key found for this signature in database
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 -m pip install gunicorn
RUN python manage.py collectstatic 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: web:
build: . build: .
restart: always 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: volumes:
- .:/code - .:/code
ports: ports: