我已经为我的应用程序设置了 Resque.redis.namespace,现在 resque-web 不再显示工作人员和队列。
有什么方法可以让 resque-web 知道 redis.namespace 或理想情况下多个 redis namspaces?
最佳答案
假设您在 config/initializers/resque.rb
中设置了 Resque.redis.namespace。比你可以运行 resque-web 传递路径到这个文件作为命令行参数,例如:
resque-web -p 8282 rails_root/config/initializers/resque.rb
你也可以直接通过命令行选项 -N
传递命名空间,如下所示:
resque-web -p 8282 -N myapp
关于ruby-on-rails - 如何配置 resque-web 以使用 Resque.redis.namespace?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6363864/