2016-08-25 8 views
1

とスニーカーを使用して、レールエラー時に私はRubyは私がRabbitMQの でアクションをトリガするためにスニーカーの宝石を使用していますが、私は</p> <p>をトリガするための私のサービスを開始することはできませんRabbitMQの

WORKERS=MailerWorker rake sneakers:run 

のコマンドを実行して、私が得ました私のコードは

下回っている

[INFO] 160825 14:26:46 :: LAUNCH worker 
rake aborted! 
NameError: uninitialized constant ApplicationCable::ActionCable 
/home/hdthinh/wthapps/admin-api/app/channels/application_cable/channel.rb:3:in `<module:ApplicationCable>' 
/home/hdthinh/wthapps/admin-api/app/channels/application_cable/channel.rb:2:in `<top (required)>' 
/home/hdthinh/.rvm/gems/ruby-2.3.0/bundler/gems/rails-804f5b3c2af9/activesupport/lib/active_support/dependencies/interlock.rb:12:in `block in loading' 
/home/hdthinh/.rvm/gems/ruby-2.3.0/bundler/gems/rails-804f5b3c2af9/activesupport/lib/active_support/concurrency/share_lock.rb:149:in `exclusive' 
/home/hdthinh/.rvm/gems/ruby-2.3.0/bundler/gems/rails-804f5b3c2af9/activesupport/lib/active_support/dependencies/interlock.rb:11:in `loading' 
/home/hdthinh/.rvm/gems/ruby-2.3.0/bundler/gems/rails-804f5b3c2af9/railties/lib/rails/engine.rb:476:in `block (2 levels) in eager_load!' 
/home/hdthinh/.rvm/gems/ruby-2.3.0/bundler/gems/rails-804f5b3c2af9/railties/lib/rails/engine.rb:475:in `each' 
/home/hdthinh/.rvm/gems/ruby-2.3.0/bundler/gems/rails-804f5b3c2af9/railties/lib/rails/engine.rb:475:in `block in eager_load!' 
/home/hdthinh/.rvm/gems/ruby-2.3.0/bundler/gems/rails-804f5b3c2af9/railties/lib/rails/engine.rb:473:in `each' 
/home/hdthinh/.rvm/gems/ruby-2.3.0/bundler/gems/rails-804f5b3c2af9/railties/lib/rails/engine.rb:473:in `eager_load!' 
/home/hdthinh/.rvm/gems/ruby-2.3.0/gems/sneakers-2.3.5/lib/sneakers/tasks.rb:13:in `block (2 levels) in <top (required)>' 
/home/hdthinh/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>' 
/home/hdthinh/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval' 
/home/hdthinh/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>' 

などのエラー

私のRabbitMQも

をメッセージの交換で「test.user.login」を持っている私は、この記事が、エラーが続くが、私はエラーなしスニーカーを実行するにはどうすればよい Rails: How to listen to/pull from service or queue?

を発生

おかげ

+0

がこの便利http://stackoverflow.com/questions/34396006/uninitialized-constant-actioncableserverconfigurationapplicationcable –

+0

こんにちは@HieuPham、おかげで私は、この行を追加した がファイルへ 「action_cable」を必要と 「のconfig/application.rbです' うまくいった –

答えて

0

エラーでは、あなたのスクリプトにActionCableをインストールすることができません/あなたのスクリプトでそれを必要とする必要があります。

関連する問題

 関連する問題