Hey, Rick,

I was in the same situation until a few months ago:  developing code on 
numerous production sites.

I installed CF 7 and Apache on my local machine and set up virtual hosts for 
each of my production sites such that if I wanted to view the local version of 
the site, I would enter:

http://local.foo.com

....and to view the production site, I would enter:

http://www.foo.com

I was able to access the production database server from my local CF server, so 
both the production version and development version of the application can 
access the same set of tables (easier than replicating the production database 
tables locally, but it does mean I have to be a little careful with my database 
transactions in development).

I'm just now fleshing out my technique for assigning template path/file 
location variables differently depending on whether the application is running 
locally or on the production server.  My current plan is to determine the 
application's location using cgi.cf_template_path during application start-up:  
in my case, if that variable starts with "C:", I know I'm running locally.  
Once I know where the app is running, I can assign the location-sensitive 
variables appropriately.

I'm also using CFEclipse as my primary IDE.  The only problem is that we use 
WebDAV to access the production server filesystem, and for whatever reason the 
FTP/WebDAV plugin for Eclipse will not talk to our WebDAV server (actually, 
knowing our environment, it's probably the other way around).  So I still use 
Dreamweaver for pushing changes up to the server.

--Brian

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278582
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to