我刚刚观看了关于Resque这个惊人的有轨电视广播。在我启动redis服务器并启动工作人员之后:
rake environment resque:work QUEUE="*"
我想加载resque web界面。我跑完后
resque-web -p 8282
提出了这个错误:
C:\Users\makaroni4\free_frog\ffapi>resque-web -p 8282
[2011-06-21 19:04:13 +0400] Running with Windows Settings
[2011-06-21 19:04:13 +0400] Starting 'resque-web'...
[2011-06-21 19:04:13 +0400] trying port 8282...
C:/Ruby192/lib/ruby/gems/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:187:in `daemon': daemon() function is unimplemented
on this machine (NotImplementedError)
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:187:in `daemonize!'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:108:in `start'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:77:in `initialize'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/resque-1.16.1/bin/resque-web:13:in `new'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/resque-1.16.1/bin/resque-web:13:in `<top (required)>'
from C:/Ruby192/lib/ruby/gems/1.9.1/bin/resque-web:19:in `load'
from C:/Ruby192/lib/ruby/gems/1.9.1/bin/resque-web:19:in `<main>'
可能是我想念一些宝石?这是我的resque配置:
gem 'resque', :require => 'resque/server'
顺便说一下,我正在使用Windows进行rails开发。
答案 0 :(得分:3)
使用以下命令
resque-web -p 8282 -F