ActiveMessaging 生成器问题 - 不支持 Rails 3
我的 Activemessaging 插件和rails3 应用程序有问题。
我的gemfile是
gem 'sqlite3'
gem 'activemessaging', :git=>'git://github.com/spraints/activemessaging.git'
gem 'stomp'
gem 'daemons'
在供应商中出现activemessaging文件夹之后
捆绑安装之后我想使用生成器创建处理器
rails generate processor Test
我看到这个输出:
ActiveMessaging: adapter reliable_msg not loaded: no such file to load -- reliable-msg
ActiveMessaging: adapter wmq not loaded: no such file to load -- wmq/wmq
ActiveMessaging: adapter beanstalk not loaded: no such file to load -- beanstalk-client
ActiveMessaging: no '/home/ruby/myapp/script/config/messaging.rb' file to load
ActiveMessaging: Loading script/app/processors/application.rb
Rails available: Adding dispatcher prepare callback.
ActiveMessaging: no '/home/ruby/myapp/script/config/messaging.rb' file to load
Could not find generator processor.
我错过了什么?我应该一步步做什么才能使其发挥作用。谢谢
I have a problem with Activemessaging plugin and rails3 app.
my gemfile is
gem 'sqlite3'
gem 'activemessaging', :git=>'git://github.com/spraints/activemessaging.git'
gem 'stomp'
gem 'daemons'
After that activemessaging folder appeared in vendor
After bundle install I want to create processor with generator
rails generate processor Test
And I see this output:
ActiveMessaging: adapter reliable_msg not loaded: no such file to load -- reliable-msg
ActiveMessaging: adapter wmq not loaded: no such file to load -- wmq/wmq
ActiveMessaging: adapter beanstalk not loaded: no such file to load -- beanstalk-client
ActiveMessaging: no '/home/ruby/myapp/script/config/messaging.rb' file to load
ActiveMessaging: Loading script/app/processors/application.rb
Rails available: Adding dispatcher prepare callback.
ActiveMessaging: no '/home/ruby/myapp/script/config/messaging.rb' file to load
Could not find generator processor.
What did I miss ? What should I do step by step to make it works. Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
发布评论
评论(2)
萌面超妹2024-11-06 15:54:16
在 gemfile 中使用 https://github.com/kookster/activemessaging repo
gem 'activemessaging', :git => '[email protected]:kookster/activemessaging.git'
然后你可以使用 Rails 3此 gem 的生成器:
rails g active_messaging:install
rails g active_messaging:processor YOUR_PROCESSOR
这将创建 config/broker.yml (代理配置)和 config/messaging.rb (队列配置)。
它是一颗非常好的宝石。
注意:请务必包含赛璐珞 gem 和守护进程。在我的 gemfile 中:
gem 'stomp'
gem 'celluloid'
gem 'daemons'
快乐编码! .)
~没有更多了~
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
您使用什么指南或博客文章进行安装?
他们的 wiki 与您安装的步骤不同,因为他们建议将其用作插件。
编辑:
查看 Google Code 上的活跃问题后,该项目尚不支持 Rails 3。至少,缺少主要功能,例如所有生成器都位于错误的位置,以至于
railsgenerate
不会知道它们。如果您想自己进行,则必须进行一系列手动配置:
What guide or blog article are you using for installation?
Their wiki doesn't resemble the steps you're taking to install, since they recommend using it as a plugin.
EDIT:
After looking at their active issues on Google Code, this project doesn't support Rails 3 yet. At least, major features are missing such as all the generators being in the wrong place such that
rails generate
won't know about them.If you want to go it on your own, you'll have to do a bunch of manual config: