Wednesday, June 11, 2008

config/initializers/new_rails_defaults.rb and problems with Rails 2.0.2

I was trying to debug a Rails 2.0.2 app that didn't work on HostingRails. I froze the gems in the vendor folder and stuff, so that couldn't be the problem. When I looked at the cPanel error log, I saw this:


[Wed Jun 11 08:34:18 2008] [notice] mod_fcgid: process /home/royalpa/public_html/dispatch.fcgi(20133) exit(communication error), terminated by calling exit(), return code: 1
from /home/royalpa/site_files/royalpalm/config/initializers/new_rails_defaults.rb:5


I never saw new_rails_defaults.rb before so I looked at it and looked at my older Rails apps. It wasn't there. I suppose it's there because when you do "rails appname" in hostingrails, it makes a Rails 2.1 skeleton. It thinks you're going to make a 2.1 app! Delete it and it should work.

No comments: