Commit ec78dcbb authored by eric's avatar eric

Fabulous Kitchen Fab File

parent 176a7069
from fabric.api import run, cd, env, local, sudo
env.hosts = ['bat@']
env.path = '/home/bat/apps/'
env.hosts = ['']
env.path = '/home/osp/apps/vj14/ethertoff'
def getdb():
def deploy():
with cd(env.path):
run('git pull origin etherbat')
run('/home/bat/venvs/relearn/bin/python collectstatic --noinput')
sudo('/home/bat/venvs/relearn/bin/supervisorctl restart relearn')
run('git pull origin vj14')
run('/home/osp/apps/venvs/vj14/bin/python collectstatic --noinput')
sudo('/usr/bin/supervisorctl restart vj14')
def index():
with cd(env.path):
run('/home/bat/venvs/relearn/bin/python index')
run('/home/osp/apps/venvs/vj14/bin/python index')
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment