Welcome Guest | Login

Rails 404 Error

Hey guys,

Am trying to deploy my first rails app. However, I am getting a 404 error after i have run cap deploy:cold. I have no idea why at the moment. I have been through the tutorials here:
http://www.hostingrails.com/forums/wiki_thread_version/59/7

and here:
http://www.hostingrails.com/forums/wiki_thread/40

and here:
http://www.hostingrails.com/forums/wiki_thread/15

Nothing seems to stand out at the moment as being wrong though. My production log just shows me this:

# Logfile created on Sun Sep 07 15:18:48 -0400 2008

Processing BaseController#index (for  at 2008-09-08 17:58:30) [GET]
 Session ID: c9d680b683de128a62c2f4c7c1a02375
 Parameters: {"action"=>"index", "controller"=>"base"}
Rendering template within layouts/application_home
Rendering base/index
Completed in 0.00926 (108 reqs/sec) | Rendering: 0.00717 (77%) | DB: 0.00010 (1%) | 200 OK http://:]



The only thing that confuses me with the above is that there are strange times showing, i have just done this at 00:23 10/09/2008
. Should the times not match?! (Perhaps it is the time wherever the server is located?)


And, when i execute dispacth.fcgi in public it outputs a nice view of my homepage code:

tomrose@tomrosenthal.net [~/apps/tom_rosenthal/current/public]# ruby dispatch.fcgi
Content-Type: text/html; charset=utf-8
Set-Cookie: _tom_rosenthal_session=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%0ASGFzaHsABjoKQHVzZWR7AA%3D%3D--1b7dcea3f61d46674990da0c7a3249c74abd535d; path=/
Status: 200 OK
X-Runtime: 0.00925
ETag: "4e7f6309335c4556f6cb8b8447bf759a"
Cache-Control: private, max-age=0, must-revalidate
Content-Length: 2633

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>Tom Rosenthal</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta name="Description" content="Tom Rosenthal" />
 
   
   <link href="/stylesheets/home.css?1220915796" media="screen, projection" rel="stylesheet" type="text/css" />
<link href="/stylesheets/core_home.css?1220915796" media="screen, projection" rel="stylesheet" type="text/css" />
<link href="/stylesheets/print.css?1220915796" media="print" rel="stylesheet" type="text/css" />

   <script src="/javascripts/prototype.js?1220915796" type="text/javascript"></script>
<script src="/javascripts/effects.js?1220915796" type="text/javascript"></script>
<script src="/javascripts/dragdrop.js?1220915796" type="text/javascript"></script>
<script src="/javascripts/controls.js?1220915796" type="text/javascript"></script>
<script src="/javascripts/application.js?1220915796" type="text/javascript"></script>
<script src="/javascripts/lightbox.js?1220915796" type="text/javascript"></script>
<script src="/javascripts/scriptaculous.js?1220915796" type="text/javascript"></script>
 </head>
 <body  >
   <a href="#content" class="skip">Skip to content</a>
 
   <div id="container">

         <div id="header">

<img src="/images/logo-ha-orange.png" alt="Tom Rosenthal" width="829" height="136" />

   

<div class="clear"></div>
</div><!-- /header -->

   <div id="nav">
 <ul>
  <li><a href="http://:/"><img alt="Base" src="/images/nav/base_orange.png?1220915796" /></a></li>
  <li><a href="http://:/about"><img alt="Biogs" src="/images/nav/biogs_white.png?1220915796" /></a></li>
  <li><a href="http://:/news"><img alt="Articles" src="/images/nav/articles_white.png?1220915796" /></a></li>
  <li><a href="http://:/gigs"><img alt="Gigs" src="/images/nav/gigs_white.png?1220915796" /></a></li>
  <li><a href="http://:/galleries"><img alt="Galleries" src="/images/nav/galleries_white.png?1220915796" /></a></li>
  <li><a href="http://:/video_galleries"><img alt="Video_galleries" src="/images/nav/video_galleries_white.png?1220915796" /></a></li>
 
  <li><a href="http://:/contact"><img alt="Contacts" src="/images/nav/contacts_white.png?1220915796" /></a></li>
 </ul>
</div>
   
           <div id="content_main2">
             
             
       
  </div><!-- /content_main -->
   
             
  </div><!-- /container -->

 </body>
</html>
<script>window.onload = init();</script>


So i am a bit stumped on this one at the moment, any help would be much appreciated.

Pete

2008-09-08 06:26 PM

Hi Coolbox,

Vhost entries for the Mongrel Proxy was missing for your domain. I have now added the required vhost entries and the issue seems to be fixed. please verify it from your end.

2008-09-08 06:57 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.