Why not use per-application mappings?

In Application.cfc, you can set this.mappings[ '/mysite' ] to either
the production or dev CFC root as needed...

On Tue, Jun 8, 2010 at 1:03 PM, Rick Faircloth <r...@whitestonemedia.com> wrote:
>
> Hi, all.
>
>
>
> I've started using two different folders on my servers for each site.
>
> The first is for viewing a site online during development and the second
>
> folder is for production.
>
>
>
> That is creating path issues with my component path notation.
>
>
>
> If a path is on the index.cfm in the root of a site, I can use:
>
>
>
> components.myComponent
>
>
>
> The path above works for both development and production sites
>
> since the "component" directory is always directly under the root.
>
>
>
> However, on all other pages, such as .cfm pages within a cfm directory,
>
> I have been just specifying my webroot in the path to make it work:
>
>
>
> mySite.components.myComponent
>
>
>
> But with different root directories for development and production,
>
> that won't work.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334374
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to