第一次使用Rubber在Amazon EC2上部署Rails应用

时间:2023-01-26 13:24:10

I am planning on using Rubber to deploy a Rails app on Amazon EC2. Do I need to install Ruby, Rails, Postgres, Nginx and Unicorn on the EC2 server before running Rubber? Or does Rubber do all of these installations on EC2? Please advise. Thanks.

我计划使用Rubber在Amazon EC2上部署Rails应用。在运行橡胶之前,是否需要在EC2服务器上安装Ruby、Rails、Postgres、Nginx和Unicorn ?还是橡胶在EC2上完成所有这些安装?请建议。谢谢。

2 个解决方案

#1


2  

Rubber is essentially a capistrano plugin to automate deployments to amazon EC2. You don't have to manually install any of these packages. Rubber will install them for you (in the bootstrap phase), all you need to do is find the right recipe (template). You can find the list of recipes from the rubber's github page. https://github.com/rubber/rubber/tree/master/templates For the exact configuration that you mentioned, the following template should work. complete_unicorn_nginx_postgresql

实际上,Rubber是一个capistrano插件,可以将部署自动化到amazon EC2上。您不必手动安装这些包中的任何一个。橡胶将为您安装它们(在引导阶段),您需要做的就是找到正确的配方(模板)。您可以从橡胶的github页面上找到食谱清单。对于您提到的配置,以下模板应该可以工作。complete_unicorn_nginx_postgresql

#2


1  

Rubber is a bunch of capistrano recipes, so based in that definition you have to configure your server before use rubber, install Ngnix, ruby, rubygems, Unicorn, etc. But you also can create your custom capistrano rubber recipes in order to configure your server, take a look at this tutorial.

Rubber是一堆capistrano菜谱,因此根据这个定义,您必须在使用橡胶之前配置服务器,安装Ngnix、ruby、rubygems、Unicorn等。但是您也可以创建自定义的capistrano橡胶菜谱,以便配置服务器,请参阅本教程。

http://viget.com/extend/building-an-environment-from-scratch-with-capistrano-2

http://viget.com/extend/building-an-environment-from-scratch-with-capistrano-2

#1


2  

Rubber is essentially a capistrano plugin to automate deployments to amazon EC2. You don't have to manually install any of these packages. Rubber will install them for you (in the bootstrap phase), all you need to do is find the right recipe (template). You can find the list of recipes from the rubber's github page. https://github.com/rubber/rubber/tree/master/templates For the exact configuration that you mentioned, the following template should work. complete_unicorn_nginx_postgresql

实际上,Rubber是一个capistrano插件,可以将部署自动化到amazon EC2上。您不必手动安装这些包中的任何一个。橡胶将为您安装它们(在引导阶段),您需要做的就是找到正确的配方(模板)。您可以从橡胶的github页面上找到食谱清单。对于您提到的配置,以下模板应该可以工作。complete_unicorn_nginx_postgresql

#2


1  

Rubber is a bunch of capistrano recipes, so based in that definition you have to configure your server before use rubber, install Ngnix, ruby, rubygems, Unicorn, etc. But you also can create your custom capistrano rubber recipes in order to configure your server, take a look at this tutorial.

Rubber是一堆capistrano菜谱,因此根据这个定义,您必须在使用橡胶之前配置服务器,安装Ngnix、ruby、rubygems、Unicorn等。但是您也可以创建自定义的capistrano橡胶菜谱,以便配置服务器,请参阅本教程。

http://viget.com/extend/building-an-environment-from-scratch-with-capistrano-2

http://viget.com/extend/building-an-environment-from-scratch-with-capistrano-2