Changing it to: ENV[‘RAILS_ENV’] = ‘Production’ gives the following error:
[code]Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, firstname.lastname@example.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. [/code]This happens when the public folder is chmodded 775
When i chmod it to 755, the same problem occurs (no error, just enless loading).
Running dispatch.fcgi in the shell gives this message:
/usr/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/initializer.rb:150:in `read': No such file or directory - ../config/../config/environments/Production.rb (Errno::ENOENT)
from /usr/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/initializer.rb:150:in `load_environment'
from /usr/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/initializer.rb:147:in `silence_warnings'
from /usr/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/initializer.rb:147:in `load_environment'
from /usr/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/initializer.rb:78:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/initializer.rb:40:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/initializer.rb:40:in `run'
from dispatch.fcgi:22:in `require'