Commit 4990db39 authored by eric's avatar eric

jawel: fab deploy

parent 36c8b957
from fabric.api import run, cd, env, local, sudo
env.hosts = ['bat@']
env.path = '/home/bat/apps/'
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')
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