2016-11-29 1 views
0

방금 ​​레일스 4.2.6에서 레일즈 5.0.0.1로 업그레이드했습니다. 나는 config/routes.rb에 Sidekiq UI에 대한 다음과 같은 구성을 가지고 :`Rails 5.0.0.1로 업그레이드 한 후 Sidekiq :: Rails :: Reloader`가 초기화되지 않았습니다.

if Rails.application.queuing_enabled? 
    require 'sidekiq/web' 
    Sidekiq::Web.set :session_secret, Rails.application.secrets[:secret_key_base] 

    authenticate :user, ->(u) { u.admin? } do 
    mount Sidekiq::Web => '/sidekiq' 
    end 
end 

Rails.application.queuing_enabled?의 값은 항상 developmenttestproduction 모드에서 true하지만 false 될 것입니다. 나는 (시도 rspec, rails middleware 등 실행) 내 로컬에 아무것도를 실행할 때

는 업그레이드 후, 나는 아래의 오류에 직면하고있다 :

rails aborted! 
NameError: uninitialized constant Sidekiq::Rails::Reloader 
/home/project/config/routes.rb:66:in `block in <top (required)>' 
/home/project/config/routes.rb:2:in `<top (required)>' 
/home/project/config/environment.rb:6:in `<top (required)>' 
/home/project/bin/rails:9:in `require' 
/home/project/bin/rails:9:in `<top (required)>' 
/home/project/bin/spring:13:in `<top (required)>' 
bin/rails:3:in `load' 
bin/rails:3:in `<main>' 
Tasks: TOP => middleware => environment 
(See full trace by running task with --trace) 

Gemfile.lock Sidekiq에 대해 다음 버전 정보가 있습니다.

sidekiq (4.2.7) 
    concurrent-ruby (~> 1.0) 
    connection_pool (~> 2.2, >= 2.2.0) 
    rack-protection (>= 1.5.0) 
    redis (~> 3.2, >= 3.2.1) 
sidekiq-limit_fetch (3.4.0) 
    sidekiq (>= 4) 

모든 도움을 주시면 감사하겠습니다. 감사!

답변

관련 문제