fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
restart memcached via fabric
[wolnelektury.git]
/
fabfile.py
diff --git
a/fabfile.py
b/fabfile.py
index
ff9a4b4
..
87954e8
100644
(file)
--- 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)
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']
@task
def production():
env.hosts = ['giewont.icm.edu.pl']
@@
-38,6
+44,7
@@
def production():
env.services = [
Supervisord('wolnelektury'),
Supervisord('wolnelektury.celery'),
env.services = [
Supervisord('wolnelektury'),
Supervisord('wolnelektury.celery'),
+ Memcached(),
]
]