Thanks for the response
Unfortunately, I can't use your approach as my "test" and "production" scripts are in the same server, but under different directories. Hence, "HTTP_HOST" returns the same value for both "test" and "production".
But, I noticed that env variables, "REQUEST_URI" and "SCRIPT_FILENAME", has the "test" or "prod" string string attached to them (i.e, if the script name is test.cgi, the REQUEST_URI string has a value of "/testenvir/test.cgi" in 'test' environment and "/prodenvir/test.cgi" in 'prod' environment, respectively).
I am going to check if I can use your logic with the above ENV variable(s).
Is that a good approach?
Thanks,Vgn
In reply to Re^2: What is the best practice to migrate scripts from test to production
by Anonymous Monk
in thread What is the best practice to migrate scripts from test to production
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |