Re: Variables in a Prefernce File
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62149
interpreted = N
texte = We've been doing the preference file trick for about a year now. Our primaryincentive was to ease the transition from our staging server to ourproduction server as the paths, SSL info, etc. was different. This is aslightly different technique that you're inquiring about, but it's in thesame ballpark.Our staging server is: clients.grayloon.comA sample site would be: clients.grayloon.com/sampleThe live version would be: www.sample.comSo, my preference files usually specify the server name (for absolute pathson my links), domain name (for setting cookies), and sometimes the SSL (fortesting stores and stuff).So, my preferences file is included at the top of each template withvariables like this:[text]thisServer=http://clients.grayloon.com/sample[/text][text]thisSSL=http://clients.grayloon.com/sample[/text][text]thisDomain=.grayloon.com[/text]When the site is moved to the production server, we just change thevariables in the include file, and everything is ready to go:[text]thisServer=http://www.sample.com[/text][text]thisSSL=https://secure.sample.com[/text][text]thisDomain=.sample.com[/text]On 6/8/05 9:06 AM, "Lester"
wrote:> I'm copying a completed website with its admin area> etc to be used in 3-4 other "similar sites".> > There's 120+ total pages give or take per site.> > It's a chore to hard code all the database calls and> other little things to make it all behave on these> other new sites.> > My question...> If I set up a preference file for each site, and place> the unique db names and whatever else is needed for> each sites individuality, am I asking for trouble> doing this on 4-5 sites on one server???> > The initial site design being copied yesterday got> 1788 unique visitors with 108,000+ total pages views.> > I'm on windows 2003 server using webcat 4.51, 1 gig of> ram, my databases aren't that large and won't get that> large.> > I guess I'm wondering if these soon to be hundreds and> hundreds of pages across 3-4 domains with preference> files snatching and inserting variables in all those> pages is a good way to go versus me hardcodong the> info individually into pages. Can I assume webcat can> handle this well?> > Opinions appreciated.> > I'm away until late afternoon when I need to decide> which direction to continue this in...-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
We've been doing the preference file trick for about a year now. Our primaryincentive was to ease the transition from our staging server to ourproduction server as the paths, SSL info, etc. was different. This is aslightly different technique that you're inquiring about, but it's in thesame ballpark.Our staging server is: clients.grayloon.comA sample site would be: clients.grayloon.com/sampleThe live version would be: www.sample.comSo, my preference files usually specify the server name (for absolute pathson my links), domain name (for setting cookies), and sometimes the SSL (fortesting stores and stuff).So, my preferences file is included at the top of each template withvariables like this:[text]thisServer=http://clients.grayloon.com/sample[/text][text]thisSSL=http://clients.grayloon.com/sample[/text][text]thisDomain=.grayloon.com[/text]When the site is moved to the production server, we just change thevariables in the include file, and everything is ready to go:[text]thisServer=http://www.sample.com[/text][text]thisSSL=https://secure.sample.com[/text][text]thisDomain=.sample.com[/text]On 6/8/05 9:06 AM, "Lester" wrote:> I'm copying a completed website with its admin area> etc to be used in 3-4 other "similar sites".> > There's 120+ total pages give or take per site.> > It's a chore to hard code all the database calls and> other little things to make it all behave on these> other new sites.> > My question...> If I set up a preference file for each site, and place> the unique db names and whatever else is needed for> each sites individuality, am I asking for trouble> doing this on 4-5 sites on one server???> > The initial site design being copied yesterday got> 1788 unique visitors with 108,000+ total pages views.> > I'm on windows 2003 server using webcat 4.51, 1 gig of> ram, my databases aren't that large and won't get that> large.> > I guess I'm wondering if these soon to be hundreds and> hundreds of pages across 3-4 domains with preference> files snatching and inserting variables in all those> pages is a good way to go versus me hardcodong the> info individually into pages. Can I assume webcat can> handle this well?> > Opinions appreciated.> > I'm away until late afternoon when I need to decide> which direction to continue this in...-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Clint Davis
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Webcat 3 Bug?!?! Netscape + Protect + Posted Form (1998)
Number searching/formats (1998)
[NT] ie 4.0 required (1997)
chat opinion ... (2002)
(1998)
CopyFile not working? (2000)
Limiting user access to .tmpl files (1997)
Roundup function? (1997)
WebCat2b15MacPlugin - [protect] (1997)
Huge databases and RAM (1998)
Global variables are not always global ... (2000)
Emailer errors (1997)
Mac Vs WindowsNT (1997)
Pasting from M$ Word (2001)
Testing (2003)
WebCat2 Append problem (B14Macacgi) (1997)
(1997)
Error:Too many nested [xxx] contexts (1997)
Browser Resolution (1999)
Introduction/Tutorial/QuickStart (1997)