in reply to Re: What is the best practice to migrate scripts from test to production
in thread What is the best practice to migrate scripts from test to production
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What is the best practice to migrate scripts from test to production
by roboticus (Chancellor) on Jun 28, 2007 at 11:35 UTC |