A
A
Aleksey Smirnov2012-02-18 19:39:50
Debian
Aleksey Smirnov, 2012-02-18 19:39:50

Server for Ruby?

For a long time, more than 4 years ago, my friends began to actively promote Ruby to me. Indeed, looking at the huge community and a sufficient number of interesting projects written in Ruby / RoR, hands involuntarily reach for it. However, for 4 years now, all my attempts to start acquaintance with the language have been shattered when I come to the stage of raising the environment.
Yes, there are many articles on the Internet on this topic, but for some reason I come across either manuscripts from the distant 2005-2006, or thick manuals from the “How to build the entire system from source” series.
Hence my request: push the lost soul to the right way to deploy a RoR application on a Debian server. What environment can be installed from the repositories without building anything from source? What backend can be used with nginx without rebuilding it?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
sl_bug, 2012-02-18
@soar

apache + passenger nginx +
passenger
nginx + unicorn

V
Vladimir Chernyshev, 2012-02-18
@VolCh

I just ran into this problem the other day. I will say right away that it was not possible to solve it within the framework of the debian-way - everything in the turnips is old and there is not much there. You can, probably, package ruby ​​and gems as deb packages, build them locally and install them on the server via dpkg or raise your own repository, but I didn’t bother. I installed RVM and installed ruby ​​and gems through it. Interaction with the web server (Apache) - through passenger from the "left" repository.
In general, it turned out that I didn’t build anything directly from the sources, but the commands were engaged in this {rvm,gem,bundle} install, and the most “terrible” (not debian-way) command that I launched was . She was the first. bash -s stable < <(curl -s raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

B
bsboris, 2012-02-18
@bsboris

I can’t speak for pure Debian, but on Ubuntu you don’t need to build anything at all, if you use RVM, everything is installed from packages. Here, for example, is a good article on the topic (only there unicorn also works together with nginx, you can do it easier and use only nginx +passenger).

C
chipp, 2012-02-18
@chipp

Use RVM. It collects any versions of ruby ​​and at the same time you do not need any extra gestures, except for “rvm install 1.9.3”
And for working with nginx, I advise you to use the thin gem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question