Browse Source

Retira redirect para arquivo e conserta erro em Dockerfile

pull/1537/head
Edward Ribeiro 7 years ago
parent
commit
c6e9091cc4
  1. 4
      Dockerfile
  2. 4
      gunicorn_start.sh

4
Dockerfile

@ -12,11 +12,13 @@ RUN apk add --no-cache python3 nginx tzdata && \
rm -f /etc/nginx/conf.d/* rm -f /etc/nginx/conf.d/*
RUN mkdir -p /var/interlegis/sapl && \ RUN mkdir -p /var/interlegis/sapl && \
mkdir /var/log/gunicorn \
apk add --update --no-cache $BUILD_PACKAGES && \ apk add --update --no-cache $BUILD_PACKAGES && \
npm install -g bower && \ npm install -g bower && \
npm cache clean 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/ WORKDIR /var/interlegis/sapl/
ADD . /var/interlegis/sapl/ ADD . /var/interlegis/sapl/

4
gunicorn_start.sh

@ -42,6 +42,6 @@ exec gunicorn ${DJANGO_WSGI_MODULE}:application \
--name $NAME \ --name $NAME \
--workers $NUM_WORKERS \ --workers $NUM_WORKERS \
--user $USER \ --user $USER \
--access-logfile /var/log/gunicorn/gunicorn-access.log \ --access-logfile - \
--error-logfile /var/log/gunicorn/gunicorn-error.log \ --error-logfile - \
--bind=unix:$SOCKFILE --bind=unix:$SOCKFILE

Loading…
Cancel
Save