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
this.
On 6/30/06, thila thila <isputnik_98@yahoo.com>
wrote:>
> 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.
>
> <IfModule mod_fastcgi.c>
> FastCgiIpcDir /tmp/fcgi_ipc/
> FastCgiServer /app.......dir/public/dispatch.fcgi \
> -initial-env RAILS_ENV=production \
> -processes 4 -idle-timeout 180
> AddHandler fastcgi-script .fcgi
> </IfModule>
> ..
> .
> .
> .
> <VirtualHost 192.168.1.10>
> ServerName www.myurl.com
> ServerAlias myurl.com
> DocumentRoot /app...dir/public/
> <Directory /app..dir/public/ >
> Options ExecCGI FollowSymLinks
> AddHandler cgi-script .cgi
> AllowOverride all
> Allow from all
> Order allow,deny
> </Directory>
> </VirtualHost>
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060630/55898b61/attachment.html