Emit gunicorn logs to stdin and stderr

This commit is contained in:
Lukáš Kucharczyk 2023-01-08 15:48:53 +01:00
parent 33e136a810
commit 751182df52
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ RUN npm install && \
FROM python:3.10.9-alpine FROM python:3.10.9-alpine
ENV VERSION_NUMBER 0.1.2-4-g362732c ENV VERSION_NUMBER 0.1.2-5-g33e136a
ENV PROD 1 ENV PROD 1
RUN apk add \ RUN apk add \

View File

@ -10,4 +10,4 @@ poetry run python src/web/manage.py collectstatic --clear --no-input
echo "Starting server" echo "Starting server"
caddy start caddy start
cd src/web || exit cd src/web || exit
poetry run python -m gunicorn --bind 0.0.0.0:8001 web.asgi:application -k uvicorn.workers.UvicornWorker poetry run python -m gunicorn --bind 0.0.0.0:8001 web.asgi:application -k uvicorn.workers.UvicornWorker --access-logfile - --error-logfile -