Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (13 sloc) 0.429 kB
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.