[英]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): 我们将使用的一些宝石可能是一个问题(疯狂猜测):
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.