Re: Radiant on eApps


Thanks. I’m still not getting things rolling. I have 2 apps running
on my Mac using Locomotive. One of them being Radiant.
eApps preinstall rails on under the “html” directory which only led to
confusion. Based on their instructions I put the radiant
folder under the html directory also. I ftp’ed the app from my Mac
directly. I’ve created the databases and loaded the data I had in my
development db.

I can actually go to the rails console and interact with the model

ruby script/console
Loading development environment.
=> #<Page:0xb7544490 @attributes={“virtual”=>false, “slug”=>nil,
“updated_at”=>nil, “behavior_id”=>nil, “title”=>nil, “created_by”=>nil,
“breadcrumb”=>nil, “updated_by”=>nil, “published_at”=>nil,
“status_id”=>1, “layout_id”=>nil, “parent_id”=>nil, “created_at”=>nil},

When I navigate to http://mysite/public/ I see the RoR welcome page. If
I navigate to
http://mysite/radiant/public I see this:

#!/usr/bin/env ruby

You may specify the path to the FastCGI crash log (a log of unhandled

exceptions which forced the FastCGI instance to exit, great for


and the number of requests to process before running garbage


By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log

and the GC period is nil (turned off). A reasonable number of


could range from 10-100 depending on the memory footprint of your app.


# Default log path, normal GC behavior.


# Default log path, 50 requests between GC.

RailsFCGIHandler.process! nil, 50

# Custom log path, normal GC behavior.

RailsFCGIHandler.process! ‘/var/log/myapp_fcgi_crash.log’

require File.dirname(FILE) + “/…/config/environment”
require ‘fcgi_handler’


The other application I have uploaded is a photo album app (from a RoR
book). When I try that one (http://mysite/photos/public) I get this:

Application error

Rails application failed to start properly

When I check the server logs when I hit the radiant page I see nothing
(which sounds like the request is not being intercepted by any kind of
cgi process. On the photo album app I see the following entries in the
server log:

[Sat Nov 18 19:36:25 2006] [error] [client] failed to
log file
[Sat Nov 18 19:36:25 2006] [error] [client] fopen:
Permission denied
[Sat Nov 18 19:36:25 2006] [error] [client] Premature end
of script headers: dispatch.cgi


You want to edit RAILS_ROOT/config/routes.rb

Here is more info on routes: