Linux上新的Rails部署的最佳做法? [英] Best practices for new Rails deployments on Linux?

查看:202
本文介绍了Linux上新的Rails部署的最佳做法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用了直接的Mongrel,我已经在Apache后面使用了Mongrel集群,我看过Thin,而且我对Passenger非常感兴趣。我也看过Nginx。我看过MRI,Ruby企业版,Rubinius和JRuby。有很多选择,每个都声称是新的圣杯。



什么是最好的选择,一个全新的,完全最新的部署?唯一的假设是:




  • 应用程序是基于Rails 2.2的。 (我知道2.2尚未完全发布,但也不是这种部署。)

  • 服务器是基于Linux的。可能是Ubuntu Hardy,但是真的,在这种情况下,无论什么效果最好。

  • Rails将需要完全正常运行,并且可能会与MySQL数据库通信。

  • 其他一切都是可协商的。



鉴于这些特别宽泛的约束,软件组合将产生最佳效果,在并发和低开销?



我以工作人员mpm和Passenger + Ruby Enterprise Edition倾向于Apache,只是因为它提供了即时的稳定性和简单的设置和维护。



我可能会选择另一个选项吗?

解决方案

p>两周前,我从Mongrel Cluster切换到Passenger(Debian Linux Server)。我没有回头一下。乘客可能是让您的新服务器启动并运行的最简单的方式。性能和可靠性也是合理的。



个人而言,我喜欢花时间在精力充沛的Rails项目上工作,而不是处理部署问题 - Passenger使我能够做到这一点。但是,如果您有某些特殊要求(不适用于大多数产品),则Mongrel或其他产品仍然可能更为可取。


I've used straight Mongrel, I've used Mongrel clusters behind Apache, I've looked at Thin, and I'm becoming very intrigued by Passenger. I've looked at Nginx, too. I've looked at MRI, Ruby Enterprise Edition, Rubinius, and JRuby. There are a lot of options, each claiming to be the new holy grail.

What is the best option out there for a brand new, fully up-to-date deployment? The only assumptions are this:

  • The app is Rails 2.2 based. (I know 2.2 isn't fully released yet, but neither is this deployment.)
  • The server is Linux-based. Probably Ubuntu Hardy, but really, whatever works best in this case.
  • Rails will need to be fully functional and probably talk to a MySQL database.
  • Everything else is negotiable.

Given these especially broad constraints, which combination of software will yield the best result, in terms of concurrency and low overhead?

I'm leaning toward Apache with the "worker" mpm and Passenger + Ruby Enterprise Edition, simply because it offers immediate stability and simplicity of setup and maintenance.

Am I likely to be particularly better off with another option?

解决方案

I switched from Mongrel Cluster to Passenger two weeks ago (Debian Linux Server). I didn't look back for a second. Passenger is probably the easiest way to get your new server up and running. Performance and reliability are reasonable too.

Personally, I like to spend my time working on exciting new Rails projects rather than dealing with deployment issues - Passenger enables me to do exactly that. However, Mongrel or something else may still be preferable if you have some kind special requirements (doesn't apply for most products).

这篇关于Linux上新的Rails部署的最佳做法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆