diff --git a/Dockerfile b/Dockerfile index cb4713a31..7ffb05c30 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,11 +12,13 @@ RUN apk add --no-cache python3 nginx tzdata && \ rm -f /etc/nginx/conf.d/* RUN mkdir -p /var/interlegis/sapl && \ - mkdir /var/log/gunicorn \ apk add --update --no-cache $BUILD_PACKAGES && \ npm install -g bower && \ npm cache clean +#RUN ln -sf /proc/self/fd/1 /var/log/gunicorn/gunicorn-access.log && \ +# ln -sf /proc/self/fd/1 /var/log/gunicorn/gunicorn-error.log + WORKDIR /var/interlegis/sapl/ ADD . /var/interlegis/sapl/ diff --git a/gunicorn_start.sh b/gunicorn_start.sh index dd05a3a0e..6b5c98676 100755 --- a/gunicorn_start.sh +++ b/gunicorn_start.sh @@ -42,6 +42,6 @@ exec gunicorn ${DJANGO_WSGI_MODULE}:application \ --name $NAME \ --workers $NUM_WORKERS \ --user $USER \ - --access-logfile /var/log/gunicorn/gunicorn-access.log \ - --error-logfile /var/log/gunicorn/gunicorn-error.log \ + --access-logfile - \ + --error-logfile - \ --bind=unix:$SOCKFILE