Displaying 1 result from an estimated 1 matches for "custom_env_var".
2006 Aug 09
0
Deployment: Best way to switch between test and prod envs.
...was thinking, can I access OS level environment variables directly
from Apache and use their values in an Apache config file?
Like this:
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi_ipc
FastCgiServer /var/www/html/eSimplyTest/public/dispatch.fcgi \
-initial-env RAILS_ENV=${CUSTOM_ENV_VAR} \
-processes 15 -idle-timeout 300
</IfModule>
I''d like to be able to set CUSTOM_ENV_VAR in the shell and have it be
seen by Apache.
Anybody know how to do that?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.