[英]Rabbit MQ AMQP and DaemonKit
I am trying to integrate the RabbitMq and AMQP along with the daemon kit to schedule the messaging tasks in Ruby on Rails platform. 我正在尝试将RabbitMq和AMQP与守护程序套件集成在一起,以计划Ruby on Rails平台中的消息传递任务。 I am still in the experimental stage.
我仍处于实验阶段。 I was referred to few blogs and websites and one of them is: http://www.ioncannon.net/programming/941/using-daemon-kit-and-robustthread-to-build-ruby-daemons/#evented-daemon
我指的是很少的博客和网站,其中一个是: http : //www.ioncannon.net/programming/941/using-daemon-kit-and-robustthread-to-build-ruby-daemons/#evented-daemon
When I tried to run this command: daemon-kit -i amqp eventbased
inside a Rails app, I got this error: No value provided for required arguments 'app_path'
当我尝试在Rails应用
daemon-kit -i amqp eventbased
运行以下命令: daemon-kit -i amqp eventbased
,出现以下错误: No value provided for required arguments 'app_path'
I am not being able to figure out whats wrong with it. 我无法找出问题所在。 Kindly help me to resolve this issue.
请帮助我解决此问题。
So this error 所以这个错误
No value provided for required arguments 'app_path'
没有为必需的参数'app_path'提供值
appears cause you should provide path to daemon, like this 出现原因是您应该提供守护程序的路径,像这样
daemon-kit ~/projects/amqp-dev -i amqp
This will generate skeleton daemon in the amqp-dev
folder. 这将在
amqp-dev
文件夹中生成框架守护程序。
Im not sure about daemon-kit compatibility with ruby frameworks, like sinatra or rails, but I belive its not really hard to get this work with them. 我不确定daemon-kit是否与sinatra或rails之类的ruby框架兼容,但我相信将其与之配合使用并不难。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.