X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b4cd46f33295449dbde35e87d759bc01b2473afa..029fd918963a5cebf7cb722e2ba39c27639a976f:/fabfile.py diff --git a/fabfile.py b/fabfile.py index ff9a4b4f8..87954e834 100644 --- a/fabfile.py +++ b/fabfile.py @@ -24,6 +24,12 @@ def compile_messages(): run('source %(ve)s/bin/activate && python manage.py localepack -c' % env, pty=True) +class Memcached(Service): + def run(self): + print '>>> memcached: restart' + sudo('service memcached restart', shell=False) + + @task def production(): env.hosts = ['giewont.icm.edu.pl'] @@ -38,6 +44,7 @@ def production(): env.services = [ Supervisord('wolnelektury'), Supervisord('wolnelektury.celery'), + Memcached(), ]