简体   繁体   English

哪个更容易部署到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?

We need to port a Rails application running on Linux to work on a client's Windows server. 我们需要移植在Linux上运行的Rails应用程序,以便在客户端的Windows服务器上运行。 We've never done this and are unfamiliar with the Windows server environment. 我们从未这样做过,也不熟悉Windows服务器环境。 Our first decision is whether to try to port the app using JRuby or whether to just try to get the normal Ruby version working on a Windows server. 我们的第一个决定是尝试使用JRuby移植应用程序,还是尝试在Windows服务器上运行正常的Ruby版本。 Which course is more advisable? 哪个课程更合适?

Some gems we'll use that might be an issue (wildly guessing): 我们将使用的一些宝石可能是一个问题(疯狂猜测):

  • nokogiri 引入nokogiri
  • eventmachine EventMachine的
  • em-websocket EM-的WebSocket
  • mysql or postgresql adapter mysql或postgresql适配器

It depends. 这取决于。 If you use a lot of gems with natives extensions try before the native Ruby, but I would suggest a port to JRuby because it simplify a lot the deployment on Windows. 如果您使用本机扩展的许多gems尝试在本机Ruby之前尝试,但我建议使用JRuby的端口,因为它简化了Windows上的部署。 I personally use only JRuby on Windows with JBoss and Warbler or with the trinidad gem. 我个人在Windows上只使用JRuby和JBoss和Warbler,或者使用特立尼达宝石。

And, it sounds strange, but JRuby scales very well and it's faster than MRI with Java 7. I have several JRuby on Rails apps that use MSSQL Server or Oracle and they are awesome in production with only a few optimisations ( http://http.tv4.se/2011/01/20/optimzing-jruby-rails-3-0-performance ) 并且,这听起来很奇怪,但JRuby扩展得很好,它比使用Java 7的MRI更快。我有几个使用MSSQL Server或Oracle的JRuby on Rails应用程序,它们在生产中很棒,只有一些优化( http:// http .tv4.se / 2011/01/20 / optimzing-jruby-rails-3-0-performance

From what I've heard, JRuby is supposed to be the best way to deploy Rails on Windows. 据我所知,JRuby应该是在Windows上部署Rails的最佳方式。 But try to avoid this. 但要尽量避免这种情况。 Rails is happiest in a *nix environment, and anyway Windows is a terrible server OS. Rails在* nix环境中最开心,无论如何Windows是一个糟糕的服务器操作系统。

If you can't get a *nix server, how about virtualizing? 如果你无法获得* nix服务器,虚拟化怎么样?

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

相关问题 如何在Windows Azure上部署Ruby on Rails应用程序? - How deploy a Ruby on Rails app on Windows Azure? jruby on rails应用程序和鸣鸟,tomcat,Windows - jruby on rails app and warbler, tomcat, windows 使用JRuby的Rails应用无法正常工作 - Rails app with JRuby not working 在Rails应用程序上部署jruby - deployment for jruby on rails app 使用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 在Windows上从ruby应用程序执行Rails服务器 - Execute rails server from ruby app on Windows 当我想通过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? 使用 rails.app 在 Rails 应用程序上部署 Ruby - Deploy Ruby on Rails app with railway.app Ruby on Rails:如何在远程 linux 服务器上部署应用程序 - Ruby on Rails: How to deploy an app on remote linux server 一种方法,可以更轻松地在ubuntu上的轨道上部署红宝石 - ways to make it easier to deploy ruby on rails on ubuntu
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM