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)
27 class Memcached(Service):
29 print '>>> memcached: restart'
30 sudo('service memcached restart', shell=False)
35 env.hosts = ['giewont.icm.edu.pl']
37 env.app_path = '/srv/wolnelektury.pl'
38 env.django_root_path = 'src'
39 env.requirements_file = 'requirements/requirements.txt'
40 env.pre_collectstatic = [
45 Supervisord('wolnelektury'),
46 Supervisord('wolnelektury.celery'),
53 env.hosts = ['giewont.icm.edu.pl']
55 env.app_path = '/srv/wolnelektury.pl/beta'
56 env.ve = '/srv/wolnelektury.pl/ve'
57 env.django_root_path = 'src'
58 env.requirements_file = 'requirements/requirements.txt'
59 env.pre_collectstatic = [
70 env.hosts = ['san.nowoczesnapolska.org.pl:2223']
72 env.app_path = '/home/staging/wolnelektury.pl'
74 DebianGunicorn('wolnelektury'),