Browse Source

Adiciona logs a gunicorn (#1526)

pull/1537/head
Edward 7 years ago
committed by GitHub
parent
commit
ca7a7c6147
  1. 1
      Dockerfile
  2. 2
      gunicorn_start.sh

1
Dockerfile

@ -12,6 +12,7 @@ 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

2
gunicorn_start.sh

@ -42,4 +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 \
--bind=unix:$SOCKFILE

Loading…
Cancel
Save