warbler 配置和 jruby 版本
我刚刚安装了 jruby-1.4.0 来使用它。然而,我注意到,warbler 默认情况下将其与我的 Rails 部署一起打包。我的产品使用 jruby-complete-1.3.1 (我已将其添加到我的 lib 目录中以冻结版本),但 warbler 在打包所有内容时添加了 jruby-core-1.4。这对我来说有点令人担忧,因为我不希望出现任何版本问题或冲突,我只想冻结我的 jruby 版本,以便在准备升级时必须明确更改它。有谁知道实现这一目标的最佳方法?
我读到的文档说它将从 WARBLER_HOME 获取所有 jar 并将它们打包,所以我假设 jruby-core-1.4 在那里,但事实并非如此。我如何从部署中省略这个,或者具体地说,“只给我 XX 版本的 jruby”
我通过运行找到了 warbler home:
jruby -S gem which warbler
它给出了
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/warbler-0.9.14/lib/
但它只有一个机架罐子,没有引用 jruby-core-1.4
任何想法?
I just installed jruby-1.4.0 to play around with it. I'm noticing however that warbler is packaging this by default with my rails deploy. My production uses jruby-complete-1.3.1 (which I've added to my lib dir to freeze the version) but warbler is adding jruby-core-1.4 when it packages everything up. That's a bit worrisome for me as I don't want any version issues or conflicts, I just want to freeze my jruby version so that I must explicitly change it when I'm ready to upgrade. Does anyone know the best way to achieve this?
The docs I read say that it will take all jars from from WARBLER_HOME and package them, so I assumed that the jruby-core-1.4 was there, but it's not. How do I omit this from the deploy, or specifically say, "only give me XX version of jruby"
I found warbler home by running:
jruby -S gem which warbler
Which gives
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/warbler-0.9.14/lib/
But it only has a rack jar in there, no reference to jruby-core-1.4
Any thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JRuby 通过单独的 gem“jruby-jars”包含在内。安装 1.3.1 版本:
然后卸载 1.4.0 版本:
如果 gem 由于依赖而提示确认,请继续并回答“y”。
JRuby is included via the separate gem "jruby-jars". Install the 1.3.1 version:
And then uninstall the 1.4.0 version:
If gem prompts for confirmation due to dependencies, go ahead and respond with 'y'.