Installing Ruby on Rails on Debian 6

Previously used Heroku, but the free plan was not enough and expansion was too expensive, then decided to move to a vps. But since have never had to deal with setting up rails here and there was a problem. Maybe someone can suggest how to configure the server to use rails 4 with apache or nginx and MySQL or PostgreSQL.
October 3rd 19 at 02:38
2 answers
October 3rd 19 at 02:40
In railscasts, there is a smart lesson on deployment on vps: railscasts.com/episodes/335-deploying-to-a-vps

Couple of comments:
1) He paid (but $ 9 a month for a large enough database is a small price).
2) as OS there put Ubuntu (but the basic idea, I think, understand).
October 3rd 19 at 02:42
To install ruby: rvm, I put all the dependencies yourself, rvm notes will give the info for that particular system.
Postgres: apt-get install pg
Web server: depending on the religion. I personally prefer nginx + unicorn.
Another good idea would be to raise a git server (it's pretty simple) to deplot to the server using capistrano.

Here's the key words for a search, the Internet is all painted a bunch of times.

Find more questions by tags DebianRuby on Rails