RE: ONE Ring to Rule them all

2008-07-07 Thread Andy Matthews
Not if you're on different servers. 

-Original Message-
From: Colman, Richard [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2008 2:51 PM
To: CF-Talk
Subject: ONE Ring to Rule them all

 
I maintain 6 - 9 similar CF websites spread across three different Windows
and Linux servers. Maintaining the Application.cfm files is turning into a
big pain.

Is there any practical way to use ONE Application.CFM file in ONE place for
all of these sites?

Rick Colman



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: ONE Ring to Rule them all

2008-07-07 Thread Barney Boisvert
Use version control and an automated deployment framework.  You still
have 6-9 copies (can't share across servers), but you can manage them
as one.

cheers,
barneyb

On Mon, Jul 7, 2008 at 12:50 PM, Colman, Richard
[EMAIL PROTECTED] wrote:

 I maintain 6 - 9 similar CF websites spread across three different
 Windows and Linux servers. Maintaining the Application.cfm files is
 turning into a big pain.

 Is there any practical way to use ONE Application.CFM file in ONE place
 for all of these sites?

 Rick Colman

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: ONE Ring to Rule them all

2008-07-07 Thread Claude Schneegans
 Is there any practical way to use ONE Application.CFM file in ONE place
for all of these sites?

For all my sites, I have a virtual directory on the same common directory.
Then for all sites, /common/... refers to the same directory on the server.
In particular, all my Application.cfm start with:
CFINCLUDE TEMPLATE=/common/applicationCommon.cfm

And this may be used for many other occasions.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: ONE Ring to Rule them all

2008-07-07 Thread Qing Xia
One way to do that is to put store your application variables in your SQL
database (or whatever database you use).

That way, in your appication.cfm / application.cfc files, you can do a query
to pull out the values for various application variables such as
file_upload_path, application_home, debug_setting and so forth.  So long as
an application variable used by one web application is defined in the table
for all web applications.

I am sure that is clear as mud. :-)

So, here is an example:

Put the following two blocks of code in your application.cfm /
application.cfc files:

cfquery name=application.application_wide_variables datasource=my_dsn
select application_name, application_home, file_upload_path
from control_center
/cfquery

cfset application.application_name =
application.application_wide_variables.application_name

Just to be sure to set up a data source by the same name (my_dsn in this
example) in all of your applications.  This should work

On Mon, Jul 7, 2008 at 3:54 PM, Andy Matthews [EMAIL PROTECTED]
wrote:

 Not if you're on different servers.

 -Original Message-
 From: Colman, Richard [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 07, 2008 2:51 PM
 To: CF-Talk
 Subject: ONE Ring to Rule them all


 I maintain 6 - 9 similar CF websites spread across three different Windows
 and Linux servers. Maintaining the Application.cfm files is turning into a
 big pain.

 Is there any practical way to use ONE Application.CFM file in ONE place for
 all of these sites?

 Rick Colman



 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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