Running the latest code from master (yesterday).
My application is running under /console
All of my handlers, config and views are off the web root, in an application mapped folder. I’ve successfully done this in an app that is in the root, but no matter what I do, I can’t make it work for an app in a folder off root.
I have the following set up in Application.cfc:
this.mappings["/admin"] = expandPath("/…/mapped/admin");
//changed as there are subfolders currently, as we want this to always load with right path
COLDBOX_APP_ROOT_PATH = getDirectoryFromPath(getCurrentTemplatePath());
//The web server mapping to this application. Used for remote purposes or static purposes
COLDBOX_APP_MAPPING = “/console”;
//COLDBOX PROPERTIES
COLDBOX_CONFIG_FILE = “/admin/config/Coldbox.cfc”;
If I do this, I get:
# Could not find the ColdFusion component or interface console./admin/config/Coldbox. Ensure that the name is correct and that the component or interface exists. The error occurred in**/src/mapped/frameworks/coldbox/system/web/loader/CFCApplicationLoader.cfc: line 74**
Called from /src/mapped/frameworks/coldbox/system/web/services/LoaderService.cfc: line 52
Called from /src/mapped/frameworks/coldbox/system/Coldbox.cfc: line 71
Called from /src/admin/console/Application.cfc: line 61 |
If I try (from the documentation):
COLDBOX_CONFIG_FILE = “admin.config.Coldbox”;
I get:
# The Config File: /src/admin/console/admin.config.Coldbox can’t be found. The error occurred in /src/mapped/frameworks/coldbox/system/core/util/Util.cfc: line 164
Called from /src/mapped/frameworks/coldbox/system/web/loader/XMLApplicationLoader.cfc: line 59
Called from /src/mapped/frameworks/coldbox/system/web/services/LoaderService.cfc: line 52
Called from /src/mapped/frameworks/coldbox/system/Coldbox.cfc: line 71
Called from /src/admin/console/Application.cfc: line 61
|
<br>162 : <cfargument name="detail" required="false" default=""><br>163 : <cfargument name="type" required="false" default="Framework"><br>**164 : <cfthrow type="#arguments.type#" message="#arguments.message#" detail="#arguments.detail#">**<br>165 : </cffunction><br>166 : <br>
|
My gut reaction is that this is a bug. If I specify a dot path, it should just assume I know what I’m doing, and leave it well enough alone.
That being said, if I’m setting things up badly can someone PLEASE tell me, 'cause I’m pulling my hair out here over this.
Mark