Librarian: support for <abstrakt>
[wolnelektury.git] / fabfile.py
1 from fnpdjango.deploy import *
2 try:
3     from fabfile_local import *
4 except ImportError:
5     pass
6
7
8 env.project_name = 'wolnelektury'
9
10
11 @task
12 def production():
13     env.hosts = ['giewont.icm.edu.pl']
14     env.user = 'lektury'
15     env.app_path = '/srv/wolnelektury.pl'
16     env.services = [
17         Supervisord('wolnelektury'),
18         Supervisord('wolnelektury.celery'),
19     ]
20
21
22 @task
23 def staging():
24     env.hosts = ['san.nowoczesnapolska.org.pl:2223']
25     env.user = 'staging'
26     env.app_path = '/home/staging/wolnelektury.pl'
27     env.services = [
28         DebianGunicorn('wolnelektury'),
29     ]