Having a quick go with Heroku buttons!

This commit is contained in:
James Brooks
2014-11-20 19:29:06 +00:00
parent f48e390adb
commit 957f81f730
5 changed files with 45 additions and 4 deletions

View 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' => '',
),
)
);