Hey All,
I'm having a similar issue to that outlined here:
http://groups.google.co.uk/group/phusion-passenger/browse_thread/thread/497d605834ff2e54/d6cd1e284352018b?hl=en&lnk=st&q=passenger+apache+environment+variables#d6cd1e284352018b
I'm trying to set an environment variable in my Apache conf that will
get picked up by my application using SetEnv. The reason for this is
that the application itself connects to different databases depending
on the host the application is accessed via.
The problem is that the environment variable doesn't appear to be
being passed down to Rails.
Now, before I get stuck into into a work-around or a patch, does
anyone know if this is currently possible?
I'd probably explain a couple of things before I get architecture
questions:
1. The app uses different databases because of the security policies
of the clients using the application
2. I cannot use the domains to determine the variable in an
initializer because the database is connected up *before* any requests
happen - of course, getting access to ServerName would help in this
instance
Any and all ideas welcome!
Cheers,
Steve