开发者

Rails based EC2 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

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

Moved Answer up here:

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

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 machin开发者_StackOverflow中文版e 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.

Thanks.


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.

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.

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, which sits on top of Chef, also seems worth a look.


I highly suggest not using an AMI that has that stuff "preinstalled".

Instead, you want to use Chef as part of your deploy process. You can get cookbooks for most of the things you just listed.

Save all that, I highly recommend EY's cloud service.


BitNami has a free, preconfigured Rails EC2 image that we keep fairly up to date


I myself were looking for such an AMI but could not find it so finally went for deploying Ruby and Rails3 from scratch as mentioned here .. http://blog.enbake.com/setting-up-rails-3-stack-on-an-amazon-ec2-instance/


I have used Paul Dowman's ec2onrails to host a production app for a while now. I'm looking in to Rubber these days.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜