From ad025f17d8c53b280e618712e8a81affe8e8df23 Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Mon, 8 Feb 2016 23:33:53 +0100 Subject: [PATCH] Add gunicorn dep, deploy with supervisor --- fabfile.py | 5 ++--- requirements.txt | 7 ++++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fabfile.py b/fabfile.py index aaad216..0dc832c 100644 --- a/fabfile.py +++ b/fabfile.py @@ -21,6 +21,5 @@ def deploy(): run('umask 022; python manage.py collectstatic --noinput') # Collect static run('python manage.py migrate') # Run DB migrations - # TODO: Supervisor - # Reload gunicorn - sudo('/etc/init.d/gunicorn reload', shell=False) + # Reload mxapi.neuf.no + sudo('/usr/bin/supervisorctl pid mxapi.neuf.no | xargs kill -HUP', shell=False) diff --git a/requirements.txt b/requirements.txt index 38a191d..3fe2024 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,8 @@ Django>=1.9,<1.10 -djangorestframework>=3.3,<3.4 django-extensions==1.6.1 django-filter==0.12.0 -passlib==1.6.5 -mysqlclient==1.3.7 +djangorestframework>=3.3,<3.4 Fabric==1.10.2 +gunicorn==19.4.5 +mysqlclient==1.3.7 +passlib==1.6.5