Web Hosting Forum | Lunarpages
News: November 3, 2008 - Enter Your URL in to WIN the November Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 18, 2008, 08:11:33 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Ruby on Rails deployment nightmare  (Read 242 times)
geolev
Intergalactic Cowboy
*****
Offline Offline

Posts: 74


WWW
« on: August 03, 2008, 05:38:55 AM »

Okay, I'm at my wits end. Seems like I have been working on this for weeks now.

I want to deploy my ROR app to my VPS server. I have been searching the web and there are lots of people who claim to have done it but there way never seems to exactly match my configuration. Ironically, I got it working once a long time ago with Apache and Fastcgi but I messed up my development environment (I upgraded) and now that doesn't work any more. So I decided to take a new swing at it. Three weeks later and I'm still no closer to happiness.

Most everything I've read says not to use Fastcgi but to use Apache and Mongrel so I'm following these instructions:

http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/#comment-3931

This is the best I have found so far but I quickly run into questions. This guide assumes Apache 2.2 with mod_proxy_balancer. Right there I'm lost.

Time to take stock. My VPS has Apache 2.0.52 installed with Fastcgi.

Question 1: How can I tell if I have mod_proxy_balancer installed?
Question 2: Should I upgrade to Apache 2.2?
Question 3: How do I upgrade to Apache 2.2?
Question 4: I have other web sites (static ones not ROR apps) on this VPS, what impact will upgrading have on them?
Question 5: I have Fastcgi installed right now. Should I remove it if I'm going to install Mongrel?
Question 6: How do I remove Fastcgi?
Question 7: How do I install mod_proxy_balancer?


I have several projects all hinging on being able to get this deployment issue figured out. I don't want to move forward on them unless I can deploy them.

Someone please help. If you know of a tutorial on the web or a book that describes how to do this with the environments provided by LP please post a reply here.

Thanks,
George
Logged

perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1098



« Reply #1 on: August 03, 2008, 08:40:41 AM »

Hi,

Let me to try to assist with your questions.

Quote
Question 1: How can I tell if I have mod_proxy_balancer installed?
Question 2: Should I upgrade to Apache 2.2?

The module mod_proxy_balancer has appeared in Apache 2.1 and later so you will need to upgrade if you would like to use it.

Quote
Question 3: How do I upgrade to Apache 2.2?

There are two ways. First is build from sources and second is find rpms for Centos 4 that should be installed on your VPS. I would recommend to try the second way since the first one will require re-building of other components depending on Apache such as PHP, mod_fastcgi etc.  But, if the other sites on the server are only static ones and you will not need FastCGI any more, you can choose compiling Apache.

Quote
Question 4: I have other web sites (static ones not ROR apps) on this VPS, what impact will upgrading have on them?

Static pages should be working and it might be very scary setup that breaks server from serving static pages.

Quote
Question 5: I have Fastcgi installed right now. Should I remove it if I'm going to install Mongrel?

It does not matter as proxying to Mongrel does not affect or depend on Fastcgi.

Quote
Question 6: How do I remove Fastcgi?

It depends on how it was installed. More than likely you need to remove Fastcgi rpms.

Quote
Question 7: How do I install mod_proxy_balancer?

In 99% cases it will be compiled or provided with Apache 2.2 rpm.

Please reply back if you need further help.

Best Regards,
Vlad
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM