We have written an installer in the past that asks where the cfc root for that application will be then it updates all of the CFCs as it writes them to the correct location and puts the correct
root information into them.
It is a pretty simple matter of parsing the CFCs for some placeholder text and replacing it with the correct path information.
There really aren't any limitations with CF, that I have run into, that there aren't simple work arounds to - sometimes you just have to look at the problem from a different perspective.
I can't say this solution will work for everyone - but it has worked for us quite well in the past.
We have a similar script that will work in the reverse order - we tell it what cfc path to replace with the placeholder text in order to prepare all of the CFCs for the installer.
Bill
On 5/3/05, Mark Mandel <[EMAIL PROTECTED]> wrote:
If every site you have ever written has been off the web root, I'd be surprised. (And say you've never worked on a corp. intranet)
It works like - I wrote my CFC lib to work on /com
but now my app has to reside on /myApplicationGroup/Forms/DothisForm/
How many CFCs do you have to rewrite?
I bet a bunch.
You shouldn't have to rewrite them *at all*
Mark
On 5/4/05, Jared Rypka-Hauer - CMG, LLC < [EMAIL PROTECTED]> wrote:Maybe I'm missing something here... and granted, I can see the benefit of sharing a codebase across sites... but I've written anything I needed to redeploy using the webroot as the base of the CFC's path. I haven't seen anyone address this as viable/not viable as a solution.
--
E: [EMAIL PROTECTED]
W: www.compoundtheory.com
ICQ: 3094740 ----------------------------------------------------------You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone ( www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
--
[EMAIL PROTECTED]
http://blog.rawlinson.us
If you want Gmail - just ask. ----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
