Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 429 Bytes
from fabric.operations import run
from fabric.context_managers import cd, prefix, env
env.hosts = ['uvar@uvar.si']
def deploy(quick=False):
with cd('~/uvar.si'):
run('git pull')
with prefix('workon uvar'):
if not quick:
run('django-admin.py syncdb')
run('django-admin.py collectstatic --noinput')
run('supervisorctl restart uvar.si')
def quickdeploy():
deploy(quick=True)
Jump to Line
Something went wrong with that request. Please try again.