Hey Chris,

If you're on the MG 2.0 code base (Unity), use two different  
ColdSpring.xml files to configure the application for the context -  
just edit index.cfm to switch which one to use based on host, etc.

-Joe

On May 10, 2007, at 8:44 AM, Peterson, Chris wrote:

> I am writing my first site using MG and Transfer ORM.
>
> I want to serve 2 sites with similar code bases and many shared
> functions, but which pull from separate databases.  In my
> application.cfc file, I have a cfswitch on #lcase(trim 
> (cgi.HTTP_HOST))#,
> then I check www.sitename.com, or sitename.com, and initialize my
> cfapplication tag, as well as my singleton for transfer (each site has
> its own transfer config files).  Is there anything wrong with doing it
> this way, should I totally separate my code base (which I don't  
> want to
> do for ease up management / update purposes) or will this run well?  
> This
> is a very high traffic site, and I cant wait to take advantage of
> Transfer and MG's caching mechanisms.
>
> Chris
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

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

Reply via email to