| Line | |
|---|
| 1 | from __future__ import with_statement |
|---|
| 2 | import os |
|---|
| 3 | from fabric.api import * |
|---|
| 4 | from fabric.contrib.console import confirm |
|---|
| 5 | |
|---|
| 6 | env.hosts = ['liqd.net'] |
|---|
| 7 | env.user = 'liqdnet' |
|---|
| 8 | env.deploy_dir = '/home/%s/' % env.user |
|---|
| 9 | |
|---|
| 10 | def deploy(): |
|---|
| 11 | put('pip-requirements.txt', env.deploy_dir) |
|---|
| 12 | with cd(env.deploy_dir): |
|---|
| 13 | #run('virtualenv .') |
|---|
| 14 | run('source bin/activate') |
|---|
| 15 | #run('easy_install pip') |
|---|
| 16 | run('bin/pip install -E . -r pip-requirements.txt') |
|---|
| 17 | with cd('src/adhocracy/docs'): |
|---|
| 18 | run('make html') |
|---|
| 19 | run('touch site.wsgi') |
|---|
Note: See
TracBrowser
for help on using the repository browser.