在EC2上托管轨道轨道

2023-09-11 08:49:13 作者:人潮拥挤怎么没挤死你

我想部署一个轨道到Amazon EC2上。我看了一下poolparty和ec2onrails但既不似乎维持了。

I want to deploy a rails onto amazon ec2. I've had a look at poolparty and ec2onrails but neither seem to be maintained anymore.

什么是使用要做到这一点的人吗?是不是所有的傀儡家酿和Capistrano的还是有一个项目,将让我去?

What are people using to do this? Is it all homebrewed puppet and capistrano or is there a project that will get me going?

推荐答案

我可以推荐两个项目:

如果你有一个单一的Rails应用程序,看看橡胶。这是一个宝石,可以为您提供EC2实例,安装软件和部署应用程序。它是基于Capistrano的。有食谱最常用的组件(MySQL和Apache的,客运,Postgres的,等等)。

If you have a single Rails app, take a look at Rubber. It's a gem that can provision EC2 instances for you, install software and deploy your app. It's based on Capistrano. There are recipes for the most common components (mysql, apache, passenger, postgres, etc.).

如果您有更复杂的设置(如多个应用程序或特定需求的未涵盖的橡胶)我建议厨师。它确实有相当的学习曲线,所以prepare自己。上手厨师看看行动code 。

In case you have more complex setup (e.g. multiple apps or specific needs that aren't covered by Rubber) I recommend Chef. It does have quite a learning curve, so prepare yourself. Take a look at OpsCode to get started with Chef.