Forum: Ruby on Rails mod_fcgid

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F719c6cb34bd5b691c12b373b7244b4d?d=identicon&s=25 Dorian Mcfarland (tachekent)
on 2006-03-23 19:41
(Received via mailing list)
Hello,
I'm using rails on apache2 with mod_fcgid and I can't seem to set the
RAILS_ENV properly.
I have dev & production vhosts and would like to set the environment
from within apache rather than globally via fcgid.conf, and I thought
this might work from within the relevant vhost:

DefaultInitEnv RAILS_ENV production

but it seems to do nothing...

Does anyone know the right way to do it?

dorian
F719c6cb34bd5b691c12b373b7244b4d?d=identicon&s=25 Dorian Mcfarland (tachekent)
on 2006-03-23 20:30
(Received via mailing list)
And yet again, I answered my own question. It works fine, it's just
setting the environment within apache means that it never gets picked up
by script/console or rake from within the app directory, which is where
I went wrong.

d
This topic is locked and can not be replied to.