Kidada
Kidada

Reputation: 225

First time using Rubber to deploy Rails app on Amazon EC2

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.

Upvotes: 3

Views: 1072

Answers (2)

Karthik Mallavarapu
Karthik Mallavarapu

Reputation: 141

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

Upvotes: 2

rderoldan1
rderoldan1

Reputation: 4078

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.

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

Upvotes: 1

Related Questions