From: Radek Czajka Date: Mon, 26 Sep 2011 07:33:56 +0000 (+0200) Subject: fabfile update X-Git-Url: https://git.mdrn.pl/koed-quiz.git/commitdiff_plain/0d65ebcaa43bc65b0a51eb2db693cd94598b10c7?ds=sidebyside;hp=5acb6fe123f2007fcb19e1f70dec854e516aaad3 fabfile update --- diff --git a/fabfile.py b/fabfile.py index c4965de..706dadc 100644 --- a/fabfile.py +++ b/fabfile.py @@ -11,6 +11,7 @@ import os # Globals env.project_name = 'koedquiz' env.use_south = True +env.virtualenv = '/usr/bin/virtualenv' # Servers def localhost(): @@ -25,7 +26,6 @@ def localhost(): env.hosts = ['localhost'] env.user = getuser() env.path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'test-deployment') - env.virtualenv = '/usr/bin/virtualenv' # This goes to VHost configuration env.server_name = 'koedquiz.example.com' env.server_admin = 'koedquiz ' @@ -36,8 +36,18 @@ def localhost(): # add additional servers here +def openquiz(): + env.hosts = ['giewont.icm.edu.pl'] + env.user = 'rczajka' + env.path = '/srv/koedquiz/openquiz' + env.server_name = 'otwartosc.nowoczesnapolska.org.pl' + env.server_admin = 'Radek Czajka ' + env.access_log = 'koedquiz/openquiz.log' + env.error_log = 'koedquiz/openquiz-errors.log' -servers = [localhost] + + +servers = [localhost, openquiz] # ========= # = Tasks =