At the end of the day it all boils down to the simple fact of the need to
have at least ONE file different on each of the servers to flag the
difference.
There are some advantages to Bert's solution, but for us since it's usually
just a few variables that are server dependant, we prefer to keep it as
simple as possible, hey it's our server, you put whatever you want on yours
:-).
----------
From: David Huyck [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday, 11 April 2001 16:02
To: Fusebox
Subject: Re: Variable definition files
But I like Bert's solution-- and I think you can have it both ways,
sorta.
His app_server is one file with the settings for all different
servers.
Once the custom tag tells it which machine it's on, it executes the
code for
that machine. In that sense app_server does something different for
each
machine, even though it is the same file.
Really it is the same concept as using the index.cfm in Fusebox--
instead of
having main.cfm, add.cfm, delete.cfm, we have index.cfm?fa=main,
etc... So
in app_server.cfm, we have a switch on the server name that runs the
code
for each different server. If you wanted to have separate files,
you could
take the next step and just cfinclude the settings for the different
servers
in your switch in app_server, just like the fusebox index.cfm...
Ramble, ramble, ramble...
David Huyck
[EMAIL PROTECTED]
| Isn't the whole point of app_server that it's different on each
server?
|
| -----Original Message-----
| From: Bert Dawson [mailto:[EMAIL PROTECTED]]
| Sent: April 11, 2001 8:20 AM
| To: Fusebox
| Subject: RE: Variable definition files
|
|
| Noam
|
| I think you may have missed the point: all the custom tag does is
set a
| variable, request.thisserver, to the name of the box.
| Then in the app_server.cfm you do a cfswitch on the value of the
variable.
| The advantage of this is that there is only _one_ app_server file
- you
| don't have to keep them all in synch across the dev,test and live
boxes
when
| you change something.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists