1 # -*- coding: utf-8 -*-
2 from fnpdeploy import *
5 from fabfile_local import *
10 env.project_name = 'wolnelektury'
13 def update_counters():
14 print '>>> updating counters'
15 require('app_path', 'project_name')
16 with cd(get_django_root_path('current')):
17 run('%(ve)s/bin/python manage.py update_counters' % env, pty=True)
20 def compile_messages():
21 print '>>> compiling messages'
22 require('app_path', 'project_name')
23 with cd(get_django_root_path('current')):
24 run('source %(ve)s/bin/activate && python manage.py localepack -c' % env, pty=True)
29 env.hosts = ['giewont.icm.edu.pl']
31 env.app_path = '/srv/wolnelektury.pl'
32 env.django_root_path = 'src'
33 env.requirements_file = 'requirements/requirements.txt'
34 env.pre_collectstatic = [
39 Supervisord('wolnelektury'),
40 Supervisord('wolnelektury.celery'),
46 env.hosts = ['giewont.icm.edu.pl']
48 env.app_path = '/srv/wolnelektury.pl/beta'
49 env.ve = '/srv/wolnelektury.pl/ve'
50 env.django_root_path = 'src'
51 env.requirements_file = 'requirements/requirements.txt'
52 env.pre_collectstatic = [
63 env.hosts = ['san.nowoczesnapolska.org.pl:2223']
65 env.app_path = '/home/staging/wolnelektury.pl'
67 DebianGunicorn('wolnelektury'),