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

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

问题描述

我尝试浏览我的新 EC2 设置,并希望找到适用于 Rails 的 AMI 设置.我一直有麻烦.基本上,我正在寻找这样的东西:

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

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

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:

http://www.rubyinside.com/how-to-install-a-ruby-18-stack-on-ubuntu-810-from-scratch-1566.html

此外,是的,我计划在单个 EC2 实例上运行 Rails 作为 VPS 的替代方案.如果我使用预留实例,我基本上可以以每月 22 美元的价格获得一台专用机器和 1.7GB 的 RAM.这胜过我找到的任何 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 服务器、负载平衡器等的集群设置,特别是如果您需要能够快速扩展或缩减.但在那时,单个预配置的 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 而不是Passenger.显然有一种方法可以设置集群,但坦率地说,那时可能有更好的选择.

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.

我听说将 Rubber 用作配置和部署 Rails 应用程序的好方法在 EC2 集群上.它看起来非常灵活,但相当容易上手,并且应该可以很好地从单个实例扩展到多个实例.

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.

对于更复杂的设置,我可能也想看看 Chef,但我没有任何第一手经验.

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,它位于 Chef 之上,似乎也值得一看.

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

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

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