Browse Source

fix deployment errors

pull/342/head
Guillaume Vincent 8 years ago
parent
commit
439a239d65
3 changed files with 5 additions and 4 deletions
  1. +2
    -1
      Dockerfile
  2. +2
    -2
      requirements.txt
  3. +1
    -1
      supervisord.conf

+ 2
- 1
Dockerfile View File

@@ -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 View File

@@ -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 View File

@@ -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


Loading…
Cancel
Save