Adding to the possibility of ant scripts and the best being replicating
your environment, you might use a mapping to bypass the appname on the
local box.
Also, you may want to use a factory (if it is conceivable, or for future
apps) that would instantiate all your objects. Then, if you migrated
the "com." part into it, you could just change it in one spot instead of
hundreds...
Peter Bell wrote, On 3/27/2007 12:57 AM:
Hi Aaron,
Most common solutions are replicating environments between dev and
production or an ant script with a Regex for the changes on pushing to your
production server.
Best Wishes,
Peter
On 3/27/07 1:42 AM, "Aaron Roberson" <[EMAIL PROTECTED]> wrote:
On my local windows machine running XP Pro and IIS 5 I specify the
component path like so:
createObject("component","appname.com.user.user").init();
But on my remote server running Windows 2000 Server and IIS 5 I have
to specify the component path like so:
createObject("component","com.user.user").init();
This is a huge problem because it requires that I change the
path/package name on every object invocation and within every object
that returns a full qualified path and object name as the return type
or accepts an argument with the path and object name as the type.
Just to let you know, my webroot locally is C:\Inetpub\wwwroot\ (app
path as C:\Inetpub\wwwroot) and my webroot remotely seems to be
something like D:\home\ (app path D:\home\appname).
What is the answer to this?
You are subscribed to cfcdev. To unsubscribe, please follow the instructions
at http://www.cfczone.org/listserv.cfm
CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
You are subscribed to cfcdev. To unsubscribe, please follow the instructions at
http://www.cfczone.org/listserv.cfm
CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
You are subscribed to cfcdev. To unsubscribe, please follow the instructions at
http://www.cfczone.org/listserv.cfm
CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]