从 .war 执行 rake 任务
是否可以从 warbled Rails 项目执行 rake 任务?
我有一个部署到 JBoss 的 Warbled Rails 项目。我需要在后台运行邮件程序。最好的方法是什么?
Is it possible to execute rake task from warbled rails project?
I have a warbled rails project deployed to JBoss. I need to run a mailer in background. What is best way to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

此时,最简单的方法可能是解压 war 并在其中包含一个脚本来设置类路径并使用包含的 jruby jar。
有一个功能请求,其中包含一些想法和代码分支。我希望我们最终能够内置这个功能。
At this point, it's probably easiest to unpack the war and have a script inside that sets the classpath and uses the included jruby jars.
There is a feature request with some ideas and a code fork. I hope we can have this built in eventually.