- env.hosts = ['wolnelektury.pl:22123']
- env.user = 'fundacja'
- env.path = '/opt/lektury/platforma'
- env.python = '/opt/lektury/basevirtualenv/bin/python'
- env.virtualenv = '/opt/lektury/basevirtualenv/bin/virtualenv'
- env.pip = '/opt/lektury/basevirtualenv/bin/pip'
+ env.hosts = ['szo.nowoczesnapolska.org.pl:2225']
+ env.user = 'librarian'
+ env.gitbranch = 'master'
+ env.sandbox = '/srv/library-in-a-box/sandbox/'
+ env.virtualenv = os.path.join(env.sandbox, 'bin', 'virtualenv')
+
+ env.pip = os.path.join(env.sandbox, 'python', 'bin', 'pip')
+ env.python = os.path.join(env.sandbox, 'python', 'bin', 'python')
+ common()
+
+
+def common():
+ env.path = os.path.join(env.sandbox, env.project_name)
+ env.target = os.path.join(env.path, 'bin', 'python')