I'm trying to set some environment variables that I can access from a 
.cfm page. Ideally I would set the variables APP_INI and APP_MODE in 
one place and then call the GetProfileString function on any page and 
use those variables:

<cfset DS = GetProfileString(APP_INI, APP_MODE, "MY_DS")>

They need to be set in a server-specific way, and not in 
application.cfm, so that I can move all the code to another server an 
use the APP_MODE and APP_INI for that environment.

I'm running CFMX on Mac os X (Linux release of CF), and I want to do 
this to mimic my production server which sets these variables in 
Apache's httpd.conf. I don't want to deal with the hassle of running 
CF through Apache on my local development machine.

I've tried setting the environment variables in the bin/coldfusion 
startup script and in the terminal before starting CF; my CF pages 
can't seem to access any environment variables from either place. My 
best guess now is that I need to set them in the JRun configuration 
file, but I'm not familiar with how that works.

Thanks in advance,
Ethan
-- 

Ethan Goldman, Webmaster
BuildingGreen, Inc.     www.BuildingGreen.com
802/257-7300 ext. 110   802/257-7304 (fax)
122 Birge St. Ste 30, Brattleboro, VT 05301
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com

                        
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body or 
visit the list page at www.houseoffusion.com

Reply via email to