X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/898843347cc012ac0deaeaec048f5eac907c65a2..5a15f6f4162ddda647b1ca9eec4e36f85f457056:/fabfile.py diff --git a/fabfile.py b/fabfile.py index 8f53bd557..8b16d4608 100644 --- a/fabfile.py +++ b/fabfile.py @@ -24,13 +24,12 @@ def staging(): def production(): """Use production server""" - env.hosts = ['wolnelektury.pl:22123'] - env.user = 'fundacja' - env.path = '/opt/lektury/wolnelektury' - env.python = '/opt/lektury/basevirtualenv/bin/python' - env.virtualenv = '/opt/lektury/basevirtualenv/bin/virtualenv' - env.pip = '/opt/lektury/basevirtualenv/bin/pip' - + env.hosts = ['wolnelektury.pl'] + env.user = 'rczajka' + env.path = '/srv/wolnelektury.pl' + env.python = '/usr/bin/python' + env.virtualenv = '/usr/bin/virtualenv' + env.pip = '/usr/bin/pip' # ========= # = Tasks = @@ -47,7 +46,7 @@ def setup(): """ require('hosts', 'path', provided_by=[staging, production]) - run('mkdir -p %(path)s; cd %(path)s; %(virtualenv)s --no-site-packages .;' % env, pty=True) + run('mkdir -p %(path)s; cd %(path)s; %(virtualenv)s .;' % env, pty=True) run('cd %(path)s; mkdir releases; mkdir shared; mkdir packages;' % env, pty=True) run('cd %(path)s/releases; ln -s . current; ln -s . previous' % env, pty=True) deploy()