1 # -*- coding: utf-8 -*-
2 from fnpdeploy import *
5 from fabfile_local import *
10 env.project_name = 'wolnelektury'
15 env.hosts = ['giewont.icm.edu.pl']
17 env.app_path = '/srv/wolnelektury.pl'
18 env.django_root_path = 'src'
19 env.requirements_file = 'requirements/requirements.txt'
21 Supervisord('wolnelektury'),
22 Supervisord('wolnelektury.celery'),
26 def update_counters():
27 print '>>> updating counters'
28 require('app_path', 'project_name')
29 with cd(get_django_root_path('current')):
30 run('%(ve)s/bin/python manage.py update_counters' % env, pty=True)
33 def compile_messages():
34 print '>>> compiling messages'
35 require('app_path', 'project_name')
36 with cd(get_django_root_path('current')):
37 run('%(ve)s/bin/python manage.py localepack -c' % env, pty=True)
42 env.hosts = ['giewont.icm.edu.pl']
44 env.app_path = '/srv/wolnelektury.pl/beta'
45 env.ve = '/srv/wolnelektury.pl/ve'
46 env.django_root_path = 'src'
47 env.requirements_file = 'requirements/requirements.txt'
48 env.pre_collectstatic = [
59 env.hosts = ['san.nowoczesnapolska.org.pl:2223']
61 env.app_path = '/home/staging/wolnelektury.pl'
63 DebianGunicorn('wolnelektury'),