On Sun, Jul 03, 2005, Greg Donald wrote:> How do I go about setting my Rails project to production mode when I
> am using FastCGI and don''t control the httpd.conf on the server?
Do
> most web hosts run in development mode or is mine just weird?
>
> In the Rails book it says:
>
> Apache/FastCGI:
> In httpd.conf, add the following option to the FastCgiServer definition.
> -initial-env RAILS_ENV=production
>
> Is there some different syntax for an .htaccess file perhaps?
Some people may have better options, but I usually just change the
second line of my app/config/environment.rb from:
RAILS_ENV = ENV[''RAILS_ENV''] ||
''development''
to:
RAILS_ENV = ''production''
Ben