My apologies for not including enough code and information. Here's it is:
in application.cfc
variables.framework = {
unhandledPaths = "/mxunit",
suppressImplicitService = true,
suppressServiceQueue = true
};
variables.framework.environments = {
dev = { reloadApplicationOnEveryRequest = true, trace = true, dsn="theDsn", username = "theUserName", dbpassword="thePassword" },
dev_qa = { reloadApplicationOnEveryRequest = false, trace = false, dsn="theDsn", username = "theUserName", dbpassword="thePassword" },
prod = { reloadApplicationOnEveryRequest = false, trace = false, dsn="theDsn", username = "theUserName", dbpassword="thePassword" }
};
function setupApplication() {
getEnvironment();
// writeDump(var=variables.framework, abort=false label= "variables.framework");
public function getEnvironment() {
if ( findNoCase( "web", CGI.SERVER_NAME ) ) return "prod";
if ( findNoCase( "dev", CGI.SERVER_NAME ) ) return "dev";
else return "dev_qa";
}
I used FW1's setupEnvironment().
I'm running FW/1 v 2.5RC1, ACF 9.x.
Regards,
Greg