[Mongrel] setting enviroment variable

ufuk kocolu ufuk at pilli.com
Tue Feb 6 06:18:22 EST 2007


I have a ror project which has been productized. There are several web 
sites in one ror project

I need to set an "enviroment variable" to run different sites, can I do 
that using mongrel? I tried to use mongrel's -S option and set the 
enviroment variable in that file but it seems mongrel runs that file
after it calls enviroment.rb

I also used apache's mod_proxy+mod_header to set requestheader but it 
didn't work either.

Is there a way to set an enviroment variable before mongrel initializes?

Thanks

Ufuk.




More information about the Mongrel-users mailing list