Hello,
how can i make my _config always choose the right db connection?
To often i copy something from local to production without changing the db settings and then my site it down.
How can i solve this easily in the _config?
// Local
global $databaseConfig;
$databaseConfig = array(
"type" => "MySQLDatabase",
"server" => "localhost",
"username" => "xxx",
"password" => "xxx",
"database" => "xxx",
);
// Production
global $databaseConfig;
$databaseConfig = array(
"type" => "MySQLDatabase",
"server" => "localhost",
"username" => "xxx",
"password" => "xxx",
"database" => "xxx",
);