Scazu Powered By ColdFusion 8
October 23, 2007 ·
Today we migrated my startup's website
to ColdFusion 8 (on a CrystalTech shared server). The migration went smoothly apart from someone on the same server already having a mapping for /model (with the ensuring "unable to find component or interface" error when I tried to bring the site up).
Fortunately, ColdFusion 8 has per-application mappings - and CrystalTech have them enabled in the CF Administrator - so I was able to dynamically add mappings for all of my top-level directories inside Application.cfc and I was up and running:
<!--- ensure no one can usurp our webroot-relative paths --->
<cfloop index="p" list="list,of,toplevel,directories">
<cfset this.mappings["/" & p] = expandPath("/") & p />
We're looking forward to taking advantage of several of the new features in CF8 soon (it's been frustrating being on CF8 for localhost development but deploying to CFMX7).
Tags: coldfusion · scazu