Hi all.
Ruby version: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
Rails version: rails 1.2.3
I finished my first RoR application (Rails and Oracle, using the oci
adapter). I am pretty close to production install time and I thought I
had done my homework and learned how to setup the production
environment:
- I changed 'environment.rb' and un-commented the line
ENV['RAILS_ENV'] ||= 'production'.
- To make sure I was using the correct database I even commented out
the development and test sections in the 'database.yml' file.
When I tested the application with WEBrick everything looked good.
Then I installed Mongrel as a Windows service following the
instructions that can be found at
http://noobonrails.blogspot.com/2006/06/how-to-setup-mongrel-as-native-windows.html
and realized that something is wrong with the production environment
when I got the error.
I can indeed see the service and I can start and stop it and seems to
be working fine. But after the service is running, when I start the
application I get the error above. I also get the same error if I
start Mongrel (mongrel_rails start -p 3000 -e production) or WEBrick
(ruby script/server webrick -p 3000 -e production) manually to use the
production environment, as you can see in the -e parameter.
I have noticed that if I don't specify the production environment
Mongrel tells me that it's starting the development one. And both
servers do log all activity in the development log file.
What is that I am missing here to make the whole thing work in
production?
Thanks.