简体   繁体   English

使用Warbler配置可分发的JRuby / Rails

[英]Configure distributable JRuby/Rails with Warbler

To make a web application as distributable, we can configure this in the standard web.xml: 为了使Web应用程序可分发,我们可以在标准的web.xml中进行配置:

<web-app>
  <!-- ... -->

    <distributable/>

  <!-- ... -->
</web-app>

But I'm using JRuby/Rails and building the WAR file with Warbler. 但是我正在使用JRuby / Rails并使用Warbler构建WAR文件。 Is there anyway to do this in warble.rb configuration file. 无论如何,在warble.rb配置文件中可以执行此操作。

Thank you. 谢谢。

I found the solution for this. 我找到了解决方案。 It's also described in Warbler README 在《莺》 自述文件中也有介绍

1) Copy the web.xml.erb to your /config/ 1)将web.xml.erb复制到您的/ config /

2) Add the element distributable under the root element web-app: 2)在根元素web-app下添加可分发的元素:

<web-app>
  <!-- ... -->

  <distributable/>

  <!-- ... -->
</web-app>

That's all! 就这样!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM