# ==========
# Globals
env.project_name = 'koedquiz'
+env.wsgi_name = env.project_name
env.use_south = True
+env.virtualenv = '/usr/bin/virtualenv'
# Servers
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 <koedquiz@koedquiz.example.com>'
# add additional servers here
-
-servers = [localhost]
+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 <radoslaw.czajka@nowoczesnapolska.org.pl>'
+ env.access_log = 'koedquiz/openquiz.log'
+ env.error_log = 'koedquiz/openquiz-errors.log'
+ env.wsgi_name = 'openquiz'
+
+def pdquiz():
+ env.hosts = ['giewont.icm.edu.pl']
+ env.user = 'rczajka'
+ env.path = '/srv/koedquiz/pdquiz'
+ env.server_name = 'domena.nowoczesnapolska.org.pl'
+ env.server_admin = 'Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>'
+ env.access_log = 'koedquiz/pdquiz.log'
+ env.error_log = 'koedquiz/pdquiz-errors.log'
+ env.wsgi_name = 'pdquiz'
+
+
+
+servers = [localhost, openquiz, pdquiz]
# =========
# = Tasks =