Ver a proveniência

fix deployment errors

pull/342/head
Guillaume Vincent há 8 anos
ascendente
cometimento
439a239d65
3 ficheiros alterados com 5 adições e 4 eliminações
  1. +2
    -1
      Dockerfile
  2. +2
    -2
      requirements.txt
  3. +1
    -1
      supervisord.conf

+ 2
- 1
Dockerfile Ver ficheiro

@@ -7,6 +7,7 @@ RUN apt-get update && apt-get install -y \
netcat \
&& rm -rf /var/lib/apt/lists/*
ADD requirements.txt /backend/
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
ADD . /backend/

@@ -15,4 +16,4 @@ RUN chmod 755 /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD ["/usr/bin/supervisord"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]

+ 2
- 2
requirements.txt Ver ficheiro

@@ -1,8 +1,8 @@
Django==1.9.5
djangorestframework==3.3.3
djangorestframework-jwt==1.7.2
djangorestframework-jwt==1.8.0
smartconfigparser==0.1.1
psycopg2==2.6.1
gunicorn==19.4.5
# tests
factory-boy==2.6.0
factory-boy==2.6.1

+ 1
- 1
supervisord.conf Ver ficheiro

@@ -5,7 +5,7 @@ pidfile=/var/run/supervisord.pid

[program:gunicorn]
directory=/backend
command=gunicorn cscreports.wsgi:application -w 2 -b :8000
command=gunicorn lesspass.wsgi:application -w 2 -b :8000
autostart=true
autorestart=true
redirect_stderr=true


Carregando…
Cancelar
Guardar