Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
20 lines (16 sloc) 0.59 kb
from __future__ import with_statement
from fabric.api import *
from fabric.contrib.console import confirm
env.hosts = ['apoc']
env.use_ssh_config = True
def deploy():
code_dir = '/home/svenstaro/prj/flamejam'
deploy_dir = '/srv/flamejam'
# clone/pull using keybearer first
with settings(warn_only=True):
if run("test -d %s" % code_dir).failed:
run("git clone %s" % code_dir)
with cd(code_dir):
run("git pull")
sudo("make install")
sudo("touch /etc/uwsgi/vassals/")
Jump to Line
Something went wrong with that request. Please try again.