Commit ad41e156 authored by eric's avatar eric

Deploy script

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