Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache/Rails/Passenger Displaying Site Index?

I have a Rails app that I have successfully tested with Mongrel and Webkit. Now I want to test deployment. I set up a VMWare Image using Ubuntu 8.04. I have installed Rails following this method https://help.ubuntu.com/community/RubyOnRails with the exception of using Gems 1.3 instead of 1.2. I have configured and installed Passenger. However, when I visit my sites index (http://some.ip.that.i'm.testing/) I simply get the directory index of my rails site. I should note that since I'm testing I just dumped my app in /var/www.

My Apache2 error.log file shows this and this only:

[Tue Sep 30 15:10:41 2008] [notice] Apache/2.2.8 (Ubuntu) Phusion_Passenger/2.0.3 configured -- resuming normal operations

Any idea what could be causing this problem? It seems Passenger is configured properly, but I'm not sure why my rails app is not displaying and why the site's directory listing is.

Thanks.

like image 374
JP Richardson Avatar asked Sep 30 '08 20:09

JP Richardson


1 Answers

Two questions:

1) Is Rails running at all on the server? Passenger should start Rails automatically on first request - if you do a ps, do you see it running?

2) Which directory are you seeing - is it your rails directory or the public/ directory? If it's the former, your symlink is likely pointing the wrong place (it should go to public/).

(I've seen this problem before and am trying to remember how I debugged it... these are my first two thoughts.)

like image 190
scottru Avatar answered Oct 01 '22 19:10

scottru