-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |