V
V
Vladimir Korshunov2012-03-21 01:26:22
ruby
Vladimir Korshunov, 2012-03-21 01:26:22

The environment on the production server for web applications in Ruby. How to set up the server correctly?

After writing the application, the question arises of how to deploy it all on combat servers. On the local machine there is some kind of server that spins from your user and somehow does not cause problems. But the server is different.

Take for example a Rails application (Ruby 1.9.3-head, Rails 3.2).

There is a root shell on the server, for example, with Debian / Ubuntu, nginx is already running on the server. What is the best way to build an environment in which this application will work?

My thoughts were in the direction of installing rvm, unicorn and running this goodness by the www-data user, but I could not implement such a scheme. Does anyone have similar solutions?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
antonzaycev, 2012-03-21
@antonzaycev

I advise you to read the article Bundle rvm + Rails + Nginx + Unicorn or deploy the rails correctly , I think everything is very clearly described in it. If you have any questions - write in a personal, I will help in any way I can.

I
Ivan Chernov, 2012-03-21
@peanut

If the wonderful article above does not help, then simply describe your problems with the implementation of this scheme and here they may well help you, that's why Q&A ...

V
Vladimir Chernyshev, 2012-03-22
@VolCh

On Debian, I used www.dotdeb.org/ - the latest versions of nginx and passenger. RVM system-wide according to the instructions from the site (no suitable packages were found :(). As a result, ruby ​​still has to be built on the server. Deployed according to the application-> user / group scheme, adding the www-data user to the application group, so that nginx could read files with permissions like 440.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question