Re: svn: /pear/packages/Bugtracker/trunk/include/ config_local_sample.php prepend.inc
| From: | Brett Bieber | Date: | Tue, 04 Aug 2009 13:56:24 +0000 |
| Subject: | Re: svn: /pear/packages/Bugtracker/trunk/include/ config_local_sample.php prepend.inc | ||
| References: | 1 2 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-56895@lists.php.net to get a copy of this message | ||
On Tue, Aug 4, 2009 at 3:00 AM, Jani Taskinen<jani@php.net> wrote:
> Wouldn't it be better to have a site specific config committed to SVN
> instead? f.e. bugs.php.net.config.php, pear.php.net.config.php ?
> And picked up by current hostname? :)
That will work for live sites, but not for test environments without
providing a method to override. Hard-coding the config works for a
small number of sites, but is unacceptable if others were ever to use
this Bugtracker. I doubt everyone wants their database details in the
svn repo.
Even so, we'll still need a way for people to manually set site
details for testing on local machines, as well as include_path or any
other details. Using a require statement on a local config file that
is not overwritten or committed to the repository accomplishes that.
--
Brett Bieber