Re: Radiant on eApps

Michael,

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
objects:

ruby script/console
Loading development environment.

page=Page.new
=> #<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},
@new_record=true>

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

debugging)

and the number of requests to process before running garbage

collection.

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

requests

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

Example:

# Default log path, normal GC behavior.

RailsFCGIHandler.process!

# 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’

RailsFCGIHandler.process!

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 70.227.199.129] failed to
open
log file
[Sat Nov 18 19:36:25 2006] [error] [client 70.227.199.129] fopen:
Permission denied
[Sat Nov 18 19:36:25 2006] [error] [client 70.227.199.129] Premature end
of script headers: dispatch.cgi

Thanks,
Brian

You want to edit RAILS_ROOT/config/routes.rb

Here is more info on routes:
http://manuals.rubyonrails.com/read/chapter/65#page164

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs