Poprawienie odniesienia do django-piston w requirements.txt.
[redakcja.git] / fabfile.py
1 from __future__ import with_statement
2 from fabric.api import *
3
4
5 def staging():
6     '''Use staging server'''
7     env.hosts = ['platforma@stigma.nowoczesnapolska.org.pl:2222']
8     env.project_dir = '/home/platforma/platforma'
9
10 def deploy():
11     '''Deploy server'''
12     require('project_dir', provided_by=['staging'])
13     with cd(env.project_dir):
14         run('git pull')
15         run('./project/manage.py syncdb')
16     restart_server()
17
18 def restart_server():
19     with cd(env.project_dir):
20         run('touch project/dispatch.wsgi')
21