Running in production mode

I am running apache with mod_fastcgi on Linux - I would like to run my
app in production mode, but I could not. Following is what I have in my
httpd.conf. Can someone tell me why it does not recognize the env
variable for production? The app always runs under development mode i.e
ignores the RAILS_ENV directive.

thanks/ thila.

FastCgiIpcDir /tmp/fcgi_ipc/ FastCgiServer /app.......dir/public/dispatch.fcgi \ -initial-env RAILS_ENV=production \ -processes 4 -idle-timeout 180 AddHandler fastcgi-script .fcgi .. . . . ServerName ServerAlias DocumentRoot /app...dir/public/ Options ExecCGI FollowSymLinks AddHandler cgi-script .cgi AllowOverride all Allow from all Order allow,deny

Not sure. You can force this though through your environment.rb file.
There’s a line commented out that you can enable for situations like