fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f29c8cb
)
restart memcached via fabric
author
Jan Szejko
<j-sz@o2.pl>
Wed, 3 Feb 2016 11:58:18 +0000
(12:58 +0100)
committer
Jan Szejko
<j-sz@o2.pl>
Wed, 3 Feb 2016 11:58:18 +0000
(12:58 +0100)
fabfile.py
patch
|
blob
|
history
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)
+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(),
]