Skip to content

Commit

Permalink
Some deployment automation.
Browse files Browse the repository at this point in the history
  • Loading branch information
madjar committed Apr 5, 2012
1 parent ed82638 commit 6c74e5d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions fabfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from fabric.api import *
from fabric.contrib.files import *

env.hosts = ['anakin.rez-gif.supelec.fr']


def reload():
sudo('/etc/init.d/apache2 reload')


def deploy():
with cd('/var/lib/rezoirclogs'):
# put crashes for me
# put('production.ini', '.')
run('wget https://raw.github.com/madjar/rezoirclogs/master/production.ini -O production.ini')
if not exists('venv'):
run('virtualenv venv')
run('venv/bin/pip install -e git://github.com/madjar/rezoirclogs.git#egg=rezoirclogs')
with cd('venv/'):
run('wget https://raw.github.com/madjar/rezoirclogs/master/pyramid.wsgi -O pyramid.wsgi')
# put('pyramid.wsgi', 'venv/')
reload()

0 comments on commit 6c74e5d

Please sign in to comment.