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 primary incentive was to ease the transition from our staging server to our production server as the paths, SSL info, etc. was different. This is a slightly different technique that you're inquiring about, but it's in the same ballpark. Our staging server is: clients.grayloon.com A sample site would be: clients.grayloon.com/sample The live version would be: www.sample.com So, my preference files usually specify the server name (for absolute paths on my links), domain name (for setting cookies), and sometimes the SSL (for testing stores and stuff). So, my preferences file is included at the top of each template with variables 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 the variables 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:

    
  1. Re: Variables in a Prefernce File ( Stuart Tremain 2005)
  2. Re: Variables in a Prefernce File ( Gary Krockover 2005)
  3. Re: Variables in a Prefernce File ( Clint Davis 2005)
  4. Re: Variables in a Prefernce File ( Larry Hewitt 2005)
  5. Re: Variables in a Prefernce File ( John Peacock 2005)
  6. Re: Variables in a Prefernce File ( Donovan Brooke 2005)
  7. Variables in a Prefernce File ( Lester 2005)
We've been doing the preference file trick for about a year now. Our primary incentive was to ease the transition from our staging server to our production server as the paths, SSL info, etc. was different. This is a slightly different technique that you're inquiring about, but it's in the same ballpark. Our staging server is: clients.grayloon.com A sample site would be: clients.grayloon.com/sample The live version would be: www.sample.com So, my preference files usually specify the server name (for absolute paths on my links), domain name (for setting cookies), and sometimes the SSL (for testing stores and stuff). So, my preferences file is included at the top of each template with variables 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 the variables 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:

Is [variable] a Number? (2007) New reserved words for [tags] (2000) unique ascending numbers (2003) Purchase Plugin Missing (1996) Authorize.net, SIM, tcpconnect and applescript (2003) Newbie: ASIP vs WebTen? (2000) redirect with frames (1997) Re:Searching for ALL / empty form field (1997) Problems with ^ could be solved with [REPLACE CHARACTERS] (1997) I try hard to think positively (1998) REPOST: Upgrage pricing... The future of WebCatalog is comingwith 4.0... (2000) Friday Morning Funnies (2003) PIXO support (1997) Help! WebCat2 bug (1997) OSX 10.2.6/iTools 7.0/WebDNA 5.0 installation (2003) [SearchString] problem with [search] context (1997) Date math (1997) WebCat2: Items xx to xx shown, etc. (1997) WebCat2b15MacPlugin - showing [math] (1997) WebCat2b12plugin - [search] is broken ... not! (1997)