Getting 0.6.2 working on Dreamhost

After getting Radiant running on a Windows server using
mongrel_cluster I figured getting it running on a Linux host would be
easy. Pah.

I’m attempting to run this on Dreamhost and I think, but I’m not
certain, that the site is basically timing out.

I went through the instructions from the wiki but when I attempt to
view the site I get the following:


Logfile created on Wed Sep 05 19:59:05 -0700 2007 by logger.rb/1.5.2.9

[05/Sep/2007:19:59:05 :: 24151] starting
[05/Sep/2007:19:59:05 :: 24151] Dispatcher failed to catch: private
method split' called for nil:NilClass (NoMethodError) /usr/lib/ruby/1.8/cgi.rb:897:inparse’
/home/myuser/.gems/gems/radiant-0.6.2/vendor/rails/actionpack/lib/
action_controller/cgi_ext
/raw_post_data_fix.rb:45:in initialize_query' /usr/lib/ruby/1.8/cgi.rb:2274:ininitialize’
/usr/lib/ruby/1.8/fcgi.rb:594:in new' /usr/lib/ruby/1.8/fcgi.rb:594:ineach_cgi’
/home/myuser/.gems/gems/radiant-0.6.2/vendor/rails/railties/lib/
fcgi_handler.rb:141:in process_each_request!' /home/myuser/.gems/gems/radiant-0.6.2/vendor/rails/railties/lib/ fcgi_handler.rb:55:inprocess!’
/home/myuser/.gems/gems/radiant-0.6.2/vendor/rails/railties/lib/
fcgi_handler.rb:25:in `process!’
public/dispatch.fcgi:31
almost killed by this error

When I run public/dispatch.fcgi I get the following:


[arrow]$ public/dispatch.fcgi
Loaded suite public/dispatch.fcgi
Started

Finished in 0.000218 seconds.

0 tests, 0 assertions, 0 failures, 0 errors

Note that it actually took about three seconds, not the 0.000218s it
said.

Anyone have any ideas on what to try?

Thanks.


Damien McKenna - Husband, father, geek.
[email protected] - http://www.mc-kenna.com/

On Sep 5, 2007, at 11:07 PM, Damien McKenna wrote:

I’m attempting to run this on Dreamhost and I think, but I’m not
certain, that the site is basically timing out.

Not quite. Turns out it was brain-dead simple:

#dreamhost hack
ENV[‘RAILS_ENV’] = ‘production’
ENV[“GEM_HOME”]="/home/myaccount/.gems"
ENV[“GEM_PATH”]="/home/myaccount.gems:/usr/lib/ruby/gems/1.8"
require File.dirname(FILE) + “/…/config/environment”
require ‘fcgi_handler’
RailsFCGIHandler.process!

I originally had the ENV lines after the ‘require’ lines when they
needed to be before them. LOL!


Damien McKenna - Husband, father, geek.
[email protected] - http://www.mc-kenna.com/

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