blob: 41f7ddcbefcac5840090143249653d2bbfa7b67e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
from fabric.api import *
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')
def whoami():
run('/usr/bin/whoami')
|