Rails的基于EC2 AMI [英] Rails based EC2 AMI

查看:210
本文介绍了Rails的基于EC2 AMI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想浏览我的新EC2的设置,并希望能找到一个AMI安装Rails的。我一直有麻烦。基本上,我正在寻找的是这样的:

I trying to navigate my new EC2 setup and was hoping to find an AMI setup for Rails. I've been having trouble. Basically, I'm looking for something like this:

* Apache 2.2
* Ruby Enterprise Edtion (REE)
* Passenger
* MySql Installed and configured with Ruby

任何人都有一个AMI一个基本的Rails堆栈,他们可以指向我?

Anyone have an AMI with a basic rails stack they could point me to?

感谢您的答复/意见。我见过的大部分这些选项。我想我会去用干净的Linux AMI,然后用这样的事情对自己自定义它:

Thanks for the responses/ideas. I've seen most of these options. I think I'm going to go with a clean Linux AMI, and then use something like this to customize it myself:

<一个href="http://www.rubyinside.com/how-to-install-a-ruby-18-stack-on-ubuntu-810-from-scratch-1566.html">http://www.rubyinside.com/how-to-install-a-ruby-18-stack-on-ubuntu-810-from-scratch-1566.html

此外,是的,我计划运行在一个EC2实例的Rails作为替代车辆定位系统。如果我使用一个保留实例,我可以得到基本的专用计算机的RAM和1.7GB的约$ 22元不等。那拍我发现任何VPS。还有其他的费用和负担,但是我会继续调查是否有可能。

Also, yes I plan on running Rails on a single EC2 instance as an alternative to a VPS. If I use a reserved instance I can get basically a dedicated machine and 1.7GB of RAM for about $22 per month. That beats any VPS I've found. There are other costs and burdens, but I'm going to continue investigating if it is possible.

感谢。

推荐答案

一过,你打算在一个EC2实例上运行Rails?虽然有可能,这不是真正的地方EC2眼前一亮,你可以得到一个VPS如Slicehost,的Linode,或Webbynode一个更简单,更便宜安装。 EC2是伟大的集群设置专用的数据库,多个Rails服务器,负载均衡等,特别是如果你需要能够快速地放大或缩小。但在这一点上,一个单一的preconfigured AMI是不会做太大的好处。

First-off, are you planning to run Rails on a single EC2 instance? While possible, that's not really where EC2 shines, and you can get a simpler and cheaper setup on a VPS such as Slicehost, Linode, or Webbynode. EC2 is great for clustered setups with dedicated databases, multiple Rails servers, load balancers, etc., particularly if you need to be able to quickly scale up or down. But at that point, a single preconfigured AMI isn't going to do much good.

话说回来:过了一段时间,去年我用 EC2 on Rails的。这是体面的,但不是很灵活。它还使用了mongrel_cluster而不是乘客。显然,有一种方法来设置群集,但坦率地说,在这一点上有可能是更好的选择。

Having said that: Some time last year I used EC2 on Rails. It's decent, but not very flexible. It also uses mongrel_cluster instead of Passenger. Apparently there's a way to set up a cluster, but frankly at that point there are probably better alternatives.

我听说过橡胶伟大的事情,以此来配置和部署一个EC2集群上一个Rails应用程序。这似乎很灵活,但很容易上手,而且应该从单一的很好的扩展到多个实例。

I've heard great things about Rubber as a way to provision and deploy a Rails app on an EC2 cluster. It seems very flexible, yet fairly easy to get started with, and should scale nicely from single to multiple instances.

对于更复杂的设置,我可能会受到诱惑,看看厨师为好,但我没有任何的第一手经验吧。

For more complex setups, I would probably be tempted to look at Chef as well, but I don't have any first-hand experience with it.

PoolParty ,它坐落在厨师的顶部,似乎也值得一试。

PoolParty, which sits on top of Chef, also seems worth a look.

这篇关于Rails的基于EC2 AMI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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