Cannot get app into production with Apache1 and FastCGI

No matter what I try, I cannot not get any apps I deploy to a server running Apache 1.3 with FastCGI into the production environment. I have both

1) Specified "-initial-env RAILS_ENV=production" in the FastCgiServer line of my httpd.conf file. 2) Added "SetEnv RAILS_ENV production" to the .htacess file

and still the only way to get my apps into production is to manually edit the environment.rb file and force them into production. I have confirmed that the .htacess file is calling dispatch.fcgi rather than dispatch.cgi. It also reproduces with any app I deploy to this server... I'd like to migrate the server to apache2 + mongrel or the like, but that's not possible for reasons outside of my control.

Any suggestions are very welcome!

http://dev.rubyonrails.org/ticket/6783

"Ryan" wrote:

No matter what I try, I cannot not get any apps I deploy to a server running Apache 1.3 with FastCGI into the production environment. I have both

1) Specified "-initial-env RAILS_ENV=production" in the FastCgiServer line of my httpd.conf file. 2) Added "SetEnv RAILS_ENV production" to the .htacess file

I have 3 rails apps running FCGI without any difficulties and I did not have to SetEnv in the .htaccess file or force Production in the environment.rb file. Perhaps you could provide more detail on your configuration.

May be this is a typo in the message but .htacess should be .htacCess.

Long www.edgesoft.ca/blog/read/2