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@93.191.132.95']
env.path = '/home/bat/apps/relearn.be'
env.hosts = ['osp@osp.kitchen']
env.path = '/home/osp/apps/vj14/ethertoff'
def getdb():
pass
def deploy():
with cd(env.path):
run('git pull origin etherbat')
run('/home/bat/venvs/relearn/bin/python manage.py collectstatic --noinput')
sudo('/home/bat/venvs/relearn/bin/supervisorctl restart relearn')
run('git pull origin vj14')
run('/home/osp/apps/venvs/vj14/bin/python manage.py collectstatic --noinput')
sudo('/usr/bin/supervisorctl restart vj14')
def index():
with cd(env.path):
run('/home/bat/venvs/relearn/bin/python manage.py index')
run('/home/osp/apps/venvs/vj14/bin/python manage.py index')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment