From 64ce3bd7588fe58d37f94a064721f6108f1ba95b Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 26 Sep 2014 16:01:17 +0200 Subject: [PATCH] Single instance deployment. --- apps/quiz/migrations/0001_initial.py | 2 +- fabfile.py | 21 +++++---------------- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/apps/quiz/migrations/0001_initial.py b/apps/quiz/migrations/0001_initial.py index ef45c06..ec6a003 100644 --- a/apps/quiz/migrations/0001_initial.py +++ b/apps/quiz/migrations/0001_initial.py @@ -84,7 +84,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='answer', name='go_to', - field=models.ForeignKey(related_name=b'go_tos', blank=True, to='quiz.Question', null=True), + field=models.ForeignKey(related_name='go_tos', blank=True, to='quiz.Question', null=True), preserve_default=True, ), migrations.AddField( diff --git a/fabfile.py b/fabfile.py index c3de350..35dac8a 100644 --- a/fabfile.py +++ b/fabfile.py @@ -2,21 +2,10 @@ from fnpdjango.deploy import * env.project_name = 'koedquiz' - -@task -def openquiz(): - env.hosts = ['giewont.icm.edu.pl'] - env.user = 'rczajka' - env.app_path = '/srv/koedquiz/openquiz' - env.services = [ - DebianGunicorn('openquiz'), +env.hosts = ['giewont.icm.edu.pl'] +env.user = 'rczajka' +env.app_path = '/srv/koedquiz' +env.services = [ + Supervisord('koedquiz'), ] -@task -def pdquiz(): - env.hosts = ['giewont.icm.edu.pl'] - env.user = 'rczajka' - env.app_path = '/srv/koedquiz/pdquiz' - env.services = [ - DebianGunicorn('pdquiz'), - ] -- 2.20.1