From: Radek Czajka Date: Fri, 26 Sep 2014 14:01:17 +0000 (+0200) Subject: Single instance deployment. X-Git-Url: https://git.mdrn.pl/koed-quiz.git/commitdiff_plain/64ce3bd7588fe58d37f94a064721f6108f1ba95b?ds=sidebyside Single instance deployment. --- 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'), - ]