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 = ['']
def deploy(quick=False):
with cd('~/'):
run('git pull')
with prefix('workon uvar'):
if not quick:
run(' syncdb')
run(' collectstatic --noinput')
run('supervisorctl restart')
def quickdeploy():
Jump to Line
Something went wrong with that request. Please try again.