I am using coldfusion to invoke components and I have this question:
Is there a way to invoke a component using a relative path?
My problem is this:
In my development environment, I am using one CF install to work on multiple sites, meaning that my site root folders look like this : http://localhost:8500/site1
On my remote host, however, I do not use this "/site1 or /site2" directory structure, but rather just the site root. So instead of 'www.mysite.com/site1'
, my URL is 'www.mysite.com'
This poses a problem when my component calls during development HAVE to go through the 'site1' directory (ex. <cfinvoke component="site1.main.comp
, and my component calls during deployment do NOT (ex. <cfinvoke component="main.components
I do not want to have to change ALL my <cfinvoke> tags EVERY time I put files, then change them back EVERY time I test them locally.
Does anyone have a solution to this problem?