新手问题 如何在同一台主机上的不同项目之间同时启动 Resque?

chucai · September 20, 2012 · Last by chucai replied at September 20, 2012 · 2341 hits

如题

经过测试,会有冲突。 比如 A 项目的 Resque 会调用 B 项目的命令 :(

有遇到过这种问题的朋友么?

加命名空间

@huacnlee 正解

具体就是在你的 resque initializer 下面加这个:

Resque.redis.namespace = "#{namespace}"

You need to Sign in before reply, if you don't have an account, please Sign up first.