Commit ad41e156 authored by eric's avatar eric

Deploy script

parent dea826e4
from fabric.api import run, cd, env, local
env.hosts = ['']
env.path = '/home/osp/apps/relearn/'
def getdb():
def deploy():
with cd(env.path):
run('git pull origin master')
run('/home/osp/apps/venvs/relearn/bin/python collectstatic --noinput')
sudo('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