2011-06-21 48 views
1

I`ve只是看着這個驚人的railscast約Resque。而之後,我開始Redis的服務器,並啓動工人:resque的Web命令導致了錯誤,而建立Resque寶石在Windows

rake environment resque:work QUEUE="*" 

我想加載resque網頁界面。我跑

resque-web -p 8282 

後,這個bug引發:

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' 

我用我的鋼軌開發的方式。

回答

3

使用以下命令

resque-web -p 8282 -F