OSDN Git Service

only address resque works in post_receive and mailer queue
authorRickXing <oreofish@gmail.com>
Sun, 10 Jun 2012 09:11:34 +0000 (17:11 +0800)
committerRickXing <oreofish@gmail.com>
Sun, 10 Jun 2012 09:11:34 +0000 (17:11 +0800)
resque.sh

index 81a103a..ce7c944 100755 (executable)
--- a/resque.sh
+++ b/resque.sh
@@ -1,2 +1,2 @@
 mkdir -p tmp/pids
-bundle exec rake environment resque:work QUEUE=* RAILS_ENV=production PIDFILE=tmp/pids/resque_worker.pid BACKGROUND=yes
+bundle exec rake environment resque:work QUEUE=post_receive,mailer RAILS_ENV=production PIDFILE=tmp/pids/resque_worker.pid BACKGROUND=yes