db config issue
This commit is contained in:
parent
d6434c0a76
commit
7748da03cf
@ -96,11 +96,9 @@ class Crunchbutton_App extends Cana_App {
|
|||||||
$params['env'] = $db;
|
$params['env'] = $db;
|
||||||
|
|
||||||
if (getenv('HEROKU')) {
|
if (getenv('HEROKU')) {
|
||||||
$config = $this->config();
|
$params['config']->db->heroku = (object)[
|
||||||
$config->db->heroku = (object)[
|
|
||||||
'dsn' => getenv('HEROKU_POSTGRESQL_NAVY_URL')
|
'dsn' => getenv('HEROKU_POSTGRESQL_NAVY_URL')
|
||||||
];
|
];
|
||||||
$params['config'] = $config;
|
|
||||||
parent::init($params);
|
parent::init($params);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user