Forum: Ruby on Rails mod_fcgid

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Dorian M. (Guest)
on 2006-03-23 20:41
(Received via mailing list)
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 M. (Guest)
on 2006-03-23 21: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.

This topic is locked and can not be replied to.