Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make determination, are we in production or in developme
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00500222
Message ID:
00500244
Views:
38
>>>>Hi everybody,
>>>>
>>>>Here is our situation:
>>>>We have Live server, there working versions of all our applications+DataBases reside.
>>>>We have Development server, this has the same structure, as the Live server, but the current working versions of all applications.
>>>>
>>>>Each developer also has his/her own local system, which replicates the Development server and there are supposed to be the most current versions of applications (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 while running the main application? The simplest way which I currently implemented would be to check sys(5) (G is our Development drive). Obviously, this is not the right method, since Users could be mapped differently.
>>>>
>>>>Do you have ideas?
>>>>
>>>>Thanks a lot in advance.
>>>
>>>Made some grammar corrections for clarification :) (If you'll find more, please, correct them too, thanks.)
>>
>>The old trick I used since DBaseIII times is to check for presence of some dummy file which is in Development area and not in Live, (or vice versa)
>>
>>IF FILE(dummyfile.txt)
>>* this is a Development area
>>ENDIF
>
>Right, though, what if somebody will create the same file on live server too? :)

Hang the sign on the server:
"Authorized personnel only"
:)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform