Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 592 Bytes
from __future__ import with_statement
from fabric.api import *
from fabric.contrib.console import confirm
env.hosts = ['oracle']
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 git@github.com:svenstaro/flamejam.git %s" % code_dir)
with cd(code_dir):
run("git pull")
sudo("make install")
sudo("touch /etc/uwsgi/vassals/bacongamejam.org.ini")