From 28699559512749d4c14acfe9cf186b5dabd14397 Mon Sep 17 00:00:00 2001 From: sanj Date: Tue, 2 Mar 2010 22:31:49 +0530 Subject: [PATCH] fabfile edits --- fabfile.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fabfile.py b/fabfile.py index d1e890b..92e6ef6 100644 --- a/fabfile.py +++ b/fabfile.py @@ -14,10 +14,10 @@ env.project_name = 'index' def production(): env.hosts = ['%(project_name)s@camp.r-w-x.org'%env, ] - env.project_root = '/srv/(project_name)]s'%env + env.project_root = '/srv/%(project_name)s'%env def bzr_push(): - local('bzr push bzr+ssh://%(host)s%(project_root)s'%env) + local('bzr push bzr+ssh://%(project_name)s@%(host)s%(project_root)s'%env) def bzr_update(): run('cd %(project_root)s;bzr update'%env) @@ -33,7 +33,7 @@ def setup(): """ Setup a fresh virtualenv """ - local('bzr push --use-existing-dir bzr+ssh://%(host)s%(project_root)s'%env) + local('bzr push --use-existing-dir bzr+ssh://%(project_name)s@%(host)s%(project_root)s'%env) run('cd %(project_root)s; test -e .bzr/checkout || bzr checkout'%env) run('virtualenv %(project_root)s'%env) put(join('settings', '%(host)s.py'%env), join(env.project_root, env.project_name, 'local_settings.py')) @@ -42,5 +42,5 @@ def setup(): def deploy(): bzr_push() bzr_update() - virtual_run('python index/manage.py syncdb;python index/manage.py migrate'%env) + virtual_run('python %(project_root)s/manage.py syncdb;python %(project_root)s/manage.py migrate'%env) run('touch %(project_root)s/wsgi/django.wsgi'%env)