你如何配置 resque-web 来使用 Resque.redis.namespace? [英] How do you configure resque-web to use Resque.redis.namespace?
问题描述
我已经为我的应用程序设置了 Resque.redis.namespace,现在 resque-web 不再显示工作人员和队列.
I have set the Resque.redis.namespace for my application and now resque-web not longer displays the workers and queues.
有没有办法让 resque-web 知道 redis.namespace 或理想情况下多个 redis namspaces?
Is there some way to get resque-web to be aware of the redis.namespace or ideally multiple redis namspaces?
推荐答案
假设您在 config/initializers/resque.rb
中设置了 Resque.redis.namespace.比你可以运行 resque-web 传递路径到这个文件作为命令行参数,例如:
Assume that you set Resque.redis.namespace in config/initializers/resque.rb
. Than you can run resque-web passing path to this file as command line argument, e.g.:
resque-web -p 8282 rails_root/config/initializers/resque.rb
你也可以像这样直接通过命令行选项-N
传递命名空间:
Also you can pass namespace directly through command line option -N
like so:
resque-web -p 8282 -N myapp
这篇关于你如何配置 resque-web 来使用 Resque.redis.namespace?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!