【发布时间】:2011-12-21 01:06:40
【问题描述】:
在我的本地机器上我可以做
QUEUES=a,b,c,d rake resque:work
它会按顺序处理这些队列。但是,在 Heroku Cedar 上,我将其添加到我的 procfile 中:
worker: QUEUES=a,b,c,d exec bundle exec rake resque:work
它会在部署时使应用程序崩溃。我可能错过了一些愚蠢的东西,但我很难过。
PS 我在命令前加上 exec,因为 resque 的错误不能正确减少工作人员的数量。
【问题讨论】:
-
你在部署时使用的是resque的
gem 'resque', :git => 'http://github.com/hone/resque.git', :branch => 'keepalive'这个分支吗? -
您是否收到任何错误,无论是在控制台中还是在日志中?
-
得到一个错误:错误:没有这样的文件或目录-
标签: ruby-on-rails-3 heroku resque