AnsweredAssumed Answered

Custom config_overwrite.php with if / else

Question asked by Harald Kampen on Nov 4, 2014
Latest reply on Nov 5, 2014 by Jason Eggers
For different environments we need to handle multiple database configurations. Our deployment is via SVN, so the live version should not change the config files. The problem is that config_override.php is allways completely rewritten even when opening the configuration page.    Example: 
if ($_SERVER['APPLICATION_ENV'] == 'development') {   $sugar_config['dbconfig']['db_host_name'] = 'localhost';  }
  Goes to: 
$sugar_config['dbconfig']['db_host_name'] = 'localhost';
    Is there a way to stop writing config_override.php?    We have this problem in all versions, currently in 7.2 Professional.

Outcomes