From 751182df525fd524323d4c94873fbd8a7a57957a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sun, 8 Jan 2023 15:48:53 +0100 Subject: [PATCH] Emit gunicorn logs to stdin and stderr --- Dockerfile | 2 +- entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7f22ea7..6c391a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN npm install && \ 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 RUN apk add \ diff --git a/entrypoint.sh b/entrypoint.sh index afab7c8..3fc77c9 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,4 +10,4 @@ poetry run python src/web/manage.py collectstatic --clear --no-input echo "Starting server" caddy start 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 -