db config issue

This commit is contained in:
Devin Smith 2015-02-27 18:54:35 -08:00
parent d6434c0a76
commit 7748da03cf

View File

@ -96,11 +96,9 @@ class Crunchbutton_App extends Cana_App {
$params['env'] = $db;
if (getenv('HEROKU')) {
$config = $this->config();
$config->db->heroku = (object)[
$params['config']->db->heroku = (object)[
'dsn' => getenv('HEROKU_POSTGRESQL_NAVY_URL')
];
$params['config'] = $config;
parent::init($params);
} else {