Gem 大家用哪个版本的 resque

fsword · 2012年09月12日 · 最后由 yesmeck 回复于 2012年09月12日 · 1962 次阅读

在 Gemfile 中将

gem 'resque', :require => 'resque/server'

改为

gem 'resque', require: 'resque/server', git: 'git://github.com/defunkt/resque.git'

原因:旧的 resque 不能用 daemon 模式启动,所以我们被迫写一些脚本来管理它,这给使用带来了不便。 现在可以直接用 BACKGROUND 环境变量来让它变为后台进程

另外,旧的 resque 会在标准错误里输出

:public is no longer used to avoid overloading Module#public, use :public_folder instead

有些干扰

但是发现最新的版本有些 bug,其他人是怎么做的?

1.21 可以用 BACKGROUND 变量。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号