diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2012-09-02 14:08:05 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2012-09-02 14:08:05 +0200 |
| commit | 2c1fe198e5fb24d84c1f78c772b38d5574e87531 (patch) | |
| tree | 854b965d96fe2edfcf0d82459a77c2788feea23d | |
| parent | 6a544855d7f04b3ed5cdc4465bdbd44ae98e8be2 (diff) | |
| download | ihatemoney-mirror-2c1fe198e5fb24d84c1f78c772b38d5574e87531.zip ihatemoney-mirror-2c1fe198e5fb24d84c1f78c772b38d5574e87531.tar.gz ihatemoney-mirror-2c1fe198e5fb24d84c1f78c772b38d5574e87531.tar.bz2 | |
update the fabric script with the last arch
| -rw-r--r-- | fabfile.py | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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') |
