From c6e9091cc4b2b60ad5a029371146a42b5df40fd5 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Tue, 10 Oct 2017 15:20:50 -0300 Subject: [PATCH] Retira redirect para arquivo e conserta erro em Dockerfile --- Dockerfile | 4 +++- gunicorn_start.sh | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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