简体   繁体   English

当我想通过warble在Java应用程序服务器上部署Rails应用程序时,是否应该在jRuby中工作?

[英]Should a Rails app have to work in jRuby, when I want to deploy it via warble on a Java application Server?

I want to make sure, the app will work properly before I "warble" it. 我想确保,在“运行”之前,该应用程序将正常运行。 Does it have to work in jRuby for that or does it work anyway? 它必须在jRuby中工作还是仍然可以工作?

Normally it should work without a problem, but ... there are a few but's :) 通常情况下,它应该可以正常工作,但是...有一些但是:)

  • jruby does not support all gems jruby不支持所有宝石
  • it depends on the ruby version you developed against, it is not 1.9 compatible yet 它取决于您开发的红宝石版本,尚不兼容1.9
  • i am not sure, but interacting with the system will not work in the same way i presume (eg calling batch-scripts, starting executables, ...) 我不确定,但是与系统交互将无法以我假定的方式进行(例如,调用批处理脚本,启动可执行文件等)。

But if you don't do anything out of the ordinary, i guess it would not be a problem. 但是,如果您不做任何不同寻常的事情,我想那将不是问题。

That said, i think it is good practice to develop, or at least test, your application in the same environment (os/ruby-version) as your deployment platform. 就是说,我认为在与部署平台相同的环境(os / ruby​​-version)中开发或至少测试您的应用程序是一种好习惯。

暂无
暂无

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

相关问题 哪个更容易部署到Windows服务器:JRuby中的Rails应用程序或普通Ruby中的Rails应用程序? - Which is easier to deploy to a Windows server: a Rails app in JRuby or a Rails app in normal Ruby? 使用JRuby将Ruby on Rails应用程序的所有.rb文件编译为.class,将其打包到.war中并部署到Java appserver中 - Compile all .rb files of a Ruby on Rails app to .class using JRuby, pack it into a .war and deploy into a Java appserver Jruby:无法在 jruby on rails 应用程序中启动 webrick 服务器 - Jruby: Not able to start webrick server in jruby on rails application 我想将Mysql作为数据库部署我的Rails应用程序。 我想使用免费的heroku服务器。 此免费服务器有哪些限制? - I want to deploy my rails app with Mysql as database. I want to go with free heroku server. what are the limitations of this free server? 将已编译的Rails应用程序部署到Heroku上的Java服务器 - Deploy compiled Rails app to Java server on Heroku 如何在JRuby Rails应用程序中调试Java代码 - How to debug Java code in JRuby rails application 我无法通过Mina Deployment部署我的Rails应用程序 - I can't deploy my rails app via mina deploy Google App Engine上的Rails上的jRuby的Java错误 - Java Errors with jRuby on Rails on Google App Engine 将JRuby on Rails应用程序部署到Tomcat的最佳方法是什么? - What's the best way to deploy a JRuby on Rails application to Tomcat? 我在3000端口有一个ruby on rails web应用程序工作,我想使其在80端口工作 - I have a ruby on rails web application work at port 3000 I want to make it works at port 80
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM