X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b4cd46f33295449dbde35e87d759bc01b2473afa..26cfb5089c251551ba002f1e90b39fc0c474afd2:/fabfile.py?ds=sidebyside 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(), ]