locked_user sundialsvc4 has asked for the wisdom of the Perl Monks concerning the following question:
Here is a common question relating to web-development that came up in conversation yesterday. I gave my answer, but I wonder ... what is the best answer? Only one way to find out ... “Humbly Petition The Monks.™” :-)
The question was: what is the best way to construct code such that it is easily deployed among various (Apache) web-server environments, such that:
The approach that I suggested was to use the SetEnv directive to set an environment variable and then use this to choose among use lib statements (each one of which uses FindBin to discern where we are). I favor this approach over using SetEnv PERL5LIB and what-not.
Over a friendly virtual brevé, my friend retorted, “no, what you should be doing is using symbolic links, because then if something screws-up badly you can just replace the link on-the-spot.”
The conversation petered on for a little while, then pleasantly changed subject. But I wonder... what say The Monks? What approach did you finally settle upon, and why?
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Best practices for distinguishing "development" from "production?"
by roboticus (Chancellor) on Apr 19, 2011 at 03:00 UTC | |
|
Re: Best practices for distinguishing "development" from "production?"
by moritz (Cardinal) on Apr 19, 2011 at 13:15 UTC | |
|
Re: Best practices for distinguishing "development" from "production?"
by JavaFan (Canon) on Apr 18, 2011 at 22:25 UTC | |
|
Re: Best practices for distinguishing "development" from "production?"
by fidesachates (Monk) on Apr 19, 2011 at 14:25 UTC | |
|
Re: Best practices for distinguishing "development" from "production?"
by InfiniteSilence (Curate) on Apr 19, 2011 at 13:02 UTC | |
|
Re: Best practices for distinguishing "development" from "production?"
by anonymized user 468275 (Curate) on Apr 19, 2011 at 14:04 UTC |