librarian bump, some deployment fixes
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Wed, 2 Nov 2011 12:11:17 +0000 (13:11 +0100)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Wed, 2 Nov 2011 12:11:17 +0000 (13:11 +0100)
fabfile.py
lib/librarian
wolnelektury-celery.conf.template

index 2171987..764b9c3 100644 (file)
@@ -165,4 +165,4 @@ def restart_webserver():
     print '>>> restart webserver'
     run('touch %(path)s/%(project_name)s.wsgi' % env)
     print '>>> restart Celery'
-    sudo('supervisord restart %(project_name)s-celery' % env)
+    sudo('supervisorctl restart celery.%(project_name)s' % env)
index f844298..84ec0eb 160000 (submodule)
@@ -1 +1 @@
-Subproject commit f8442984a021793164661a54ec84ae9caaf9862b
+Subproject commit 84ec0eba63d0933b3f22a7884c46be6b796ee165
index c5d24a4..67ac74a 100644 (file)
@@ -3,12 +3,12 @@
 ; Put this in /etc/supervisor/conf.d
 ; =========================================
 
-[program:%(project_name)s-celery]
+[program:celery.%(project_name)s]
 command=%(path)s/bin/python %(path)s/releases/current/%(project_name)s/manage.py celeryd --loglevel=INFO
 directory=%(path)s/releases/current/%(project_name)s
 user=%(user)s
 numprocs=2
-process_name=wolnelektury-celery-%%(process_num)
+process_name=wolnelektury-celery-%%(process_num)d
 stdout_logfile=%(path)s/celeryd.log
 stderr_logfile=%(path)s/celeryd.log
 autostart=true