Django 1.7, working version.
[wolnelektury.git] / fabfile.py
1 from fnpdjango.deploy import *
2
3
4 env.project_name = 'wolnelektury'
5
6
7 @task
8 def production():
9     env.hosts = ['giewont.icm.edu.pl']
10     env.user = 'lektury'
11     env.app_path = '/srv/wolnelektury.pl'
12     env.services = [
13         DebianGunicorn('wolnelektury'),
14         Supervisord('celery.wolnelektury:'),
15     ]
16
17
18 @task
19 def staging():
20     env.hosts = ['san.nowoczesnapolska.org.pl:2223']
21     env.user = 'staging'
22     env.app_path = '/home/staging/wolnelektury.pl'
23     env.services = [
24         DebianGunicorn('wolnelektury'),
25     ]