Having a quick go with Heroku buttons!
This commit is contained in:
20
app/config/heroku/database.php
Normal file
20
app/config/heroku/database.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
$dbURL = parseurl(getenv('CLEARDB_DATABASE_URL'));
|
||||
$dbName = substr($dbURL["path"], 1);
|
||||
|
||||
return array(
|
||||
'default' => 'cleardb',
|
||||
'connections' => array(
|
||||
'cleardb' => array(
|
||||
'driver' => 'mysql',
|
||||
'host' => $dbURL['host'],
|
||||
'database' => $dbName,
|
||||
'username' => $dbURL['user'],
|
||||
'password' => $dbURL['pass'],
|
||||
'charset' => 'utf8',
|
||||
'collation' => 'utf8_unicode_ci',
|
||||
'prefix' => '',
|
||||
),
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user