Podwyższenie wymaganej wersji biblioteki librarian do 1.2.5 (wydanej dzisiaj).
[redakcja.git] / fabfile.py
1 from fabric.api import run, env, cd
2
3 def staging():
4     '''Add staging server to hosts'''
5     env.hosts = ['platforma@stigma.nowoczesnapolska.org.pl:2222']
6     env.project_dir = '/home/platforma/platforma'
7
8 def deploy():
9     '''Deploy server'''
10     with cd(env.project_dir):
11         run('git pull')
12         run('./project/manage.py syncdb')
13     restart_server()
14
15 def restart_server():
16     with cd(env.project_dir):
17         run('touch project/dispatch.wsgi')
18