Deploy Rails Application for EC2

My setup: Rails 2.3.10, Ruby 1.8.7 on Windows

The last time I deployed a Rails application from Windows to Linux on Slicehost, I used Capistrano, Nginx, Mongrel, and SVN. It was 3 years ago, fast forward so far, I'm still on Windows for development and are now looking for deployment in EC2. A quick search includes tools like Rubber and Chef, which are not easy to understand with a quick read. Rubber and Chef seem to be designed to deploy multiple EC2 instances, which will be useful when I need to scale.

I am also new to Passenger, but apparently this is the default option for deploying a Rails application now. One thing that I don’t understand is whether the Passenger is a replacement for Mongrel? In my old setup, I configured Nginx to redirect Rails requests to the cluster from Mongrel processes, but I don't see anything like it for Passenger.

Any ideas are greatly appreciated.

+3
source share
3 answers

- , : EC2 + Apache + Passenger. , , - Capistrano ( capistrano-ext, ) . ( -), , , , , Capistrano.

. "", , , ( , , , . RPS Mongrel, ...), , , , .. + Mongrel Cluster, , , , , , Nginx/Apache. , Capistrano .

, Passenger ( , Passenger). Ruby, . , .

, !

+2

Rubystack Rails Windows Linux. EC2 ( ), , .

, , PaaS, Heroku

0

Source: https://habr.com/ru/post/1792425/


All Articles