From 2c1fe198e5fb24d84c1f78c772b38d5574e87531 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Sun, 2 Sep 2012 14:08:05 +0200 Subject: [PATCH] update the fabric script with the last arch --- fabfile.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fabfile.py b/fabfile.py index 41f7ddc..7e71739 100644 --- a/fabfile.py +++ b/fabfile.py @@ -1,13 +1,13 @@ -from fabric.api import * +from fabric.api import env, cd, sudo, run + +env.hosts = ['sites.lolnet.lan'] -env.hosts = ['lolnet.org:20002'] -env.shell = "/usr/local/bin/bash -c" -env.path = "/usr/local/bin/:/usr/bin/" def deploy(): - with cd('/usr/local/www/notmyidea.org/ihatemoney'): - sudo('git pull', user="www") - sudo('supervisorctl restart ihatemoney') + with cd('/home//www/ihatemoney.org/code'): + sudo('git pull', user="www-data") + sudo('supervisorctl restart ihatemoney.org') + def whoami(): run('/usr/bin/whoami')