Команда resque-web приводит к ошибке при настройке Resque gem в Windows - PullRequest
1 голос
/ 21 июня 2011

Я только что смотрел этот удивительный Railscast о Resque . И после того, как я запускаю redis server и запускаю рабочих с:

rake environment resque:work QUEUE="*"

Я хочу загрузить веб-интерфейс resque.После запуска

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.

1 Ответ

3 голосов
/ 13 июля 2011

Используйте следующую команду

resque-web -p 8282 -F
...