ActiveMessaging 生成器问题 - 不支持 Rails 3

发布于 10-30 15:54 字数 967 浏览 3 评论 0原文

我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

究竟谁懂我的在乎2024-11-06 15:54:16

您使用什么指南或博客文章进行安装?

http://code.google.com/p/activemessaging/wiki/Installation< /a>


他们的 wiki 与您安装的步骤不同,因为他们建议将其用作插件。

编辑:

查看 Google Code 上的活跃问题后,该项目尚不支持 Rails 3。至少,缺少主要功能,例如所有生成器都位于错误的位置,以至于 railsgenerate 不会知道它们。

如果您想自己进行,则必须进行一系列手动配置:

http://code.google.com/p/activemessaging/wiki/Configuration< /a>


What guide or blog article are you using for installation?

http://code.google.com/p/activemessaging/wiki/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:

http://code.google.com/p/activemessaging/wiki/Configuration

萌面超妹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'

快乐编码! .)

use https://github.com/kookster/activemessaging repo in your gemfile

gem 'activemessaging', :git => '[email protected]:kookster/activemessaging.git'

Then you can use the rails 3 generators of this gem:

rails g active_messaging:install 
rails g active_messaging:processor YOUR_PROCESSOR

This will create the config/broker.yml (broker config) and config/messaging.rb (queue config).
Its a very nice gem.

NOTE: Be sure to include the celluloid gem and daemons. In my gemfile:

gem 'stomp'
gem 'celluloid'
gem 'daemons'

Happy coding! .)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文