Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make determination, are we in production or in developme
Message
De
26/04/2001 12:55:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00500222
Message ID:
00500230
Vues:
19
This message has been marked as a message which has helped to the initial question of the thread.
Ideally, developers should not have access to live data. However, what I've done in the past is define it in CONFIG.FPW, then read it when I need to. For example:

DATA=LOCAL

points to local data

DATA=DEV

points to development data.

VFP will ignore these lines when it starts.

>Hi everybody,
>
>Here is the our situation:
>We have Live server, there resides working versions of all our applications+DataBases
>We have Development server, this has the same structure, as Live, but the current working versions of all applications.
>
>Each developer also has its own local system, which replicates the Development server and there are supposed to be the most current versions (versions in work). (I myself found this system to be too complicated, so I usually work directly on Development server, but this is not right).
>
>Anyway, my question is: how can we determine, is it Live system or Development system inside the application? The simplest way which I currently implemented would be check to sys(5) (G is our Development drive). Obviously, this is not the right method, since User's could be mapped differently.
>
>Do you have ideas?
>
>Thanks a lot in advance.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform