home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.paradox      To crash or not to crash, asks Borland      9,834 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 8,300 of 9,834   
   Anders Jonsson to All   
   Re: isolated testing environment   
   19 Mar 07 20:12:39   
   
   From: gt3TakeThisAway@bredband.net   
      
   > Does   
   > anyone have any tips, pointers, advice?   
   >   
      
   Basically it's all about defining your aliases to point to another location.   
      
   There are several ways to do this.   
      
   One approach I use in some of my apps:   
      
   - Keep two separate folder structures like:   
      
      
       DEV   
                   DATA   
                   FORMS   
                   REPORTS   
                   LIBS   
      
       PROD   
                   DATA   
                   FROMS   
                   REPORTS   
                   LIBS   
      
   Prod is probably on your server, dev could also be on the server or on your   
   local drive depending on your situaion.   
      
   In prod I only keep delivered files, FDL, RDL, SDL. In dev I keep only   
   undelivered objects, FSL, RSL, SSL etc.   
      
   I use two different shortcut. One to dev, one ot prod with different private   
   folders (using the -p switch) and different work with the -w switch. Each   
   shortcut opens up Start.ssl (dev) resp Start.sdl (prod).   
      
   In the start script I define all alias for the app. I never store any alias   
   in the BDE config file. The scripts define the alias relative to the   
   location of the script it self using getFileName() so I don't need to have   
   different code in the start script.   
      
   With this setup I can run two instances of my app simulatenously - both   
   using the same names for the aliases but pointing to different locations.   
      
   There are probably many many other ways to do this (to be honest I don't use   
   this approach for all my apps) but this is the one I have found to be   
   easiest.   
      
   Anders   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca