[development] Active databases and development/test/production environment
J-P Stacey
jp.stacey at torchbox.com
Fri Aug 17 14:52:43 UTC 2007
Victor Kane wrote:
> just svn:ignore settings.php
To me, that's a bit dangerous: the recent Drupal security advisory notice(s)
affected settings.php, didn't they? So you'd have to check every live site's
settings.php by hand if something like that happened again.
Maybe the svn-enabled solution is to override in another file, bring it in
as an include, and svn:ignore that other file:
settings.php:
$db_url = 'db_default_name';
include("settings_override.php"); // file not found: fails silently?
svn:ignore'd settings_override.php
$db_url = 'db_freds_own_database';
Be nice to have a native Drupal solution, though. And that's an extra file
hit per request.
Cheers,
J-P
More information about the development
mailing list