Well, I chased it for hours, and I just can't figure it out. I have a Ruby on Rails application that I have deployed for my hosting provider DreamHost. I created a new environment called "stage" and created the stage.rb file in the / config / environment folder and placed the following line in my environment. Rb
RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
ENV["RAILS_ENV"] ||= "stage"
require File.join(File.dirname(__FILE__), 'boot')
Rails::Initializer.run do |config|
I can run
RAILS_ENV=stage script/console
and everything is working fine. I can run rake db: migrate and generate my database. Then I can go into the console and act on my model. I also see ActiveRecord activity in stage.log
The problem is that when I open the browser and go to the URL, I get a 500 error
We are sorry, but something went wrong.
, stage.log.
Apache .
1.1.1.1 - - [19/Jan/2010:06:05:01 -0800] "GET /classes/calendar HTTP/1.1" 500 861 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10"
, . , .
, . , DreamHost FTP , , , , , .
,
Rob