Cachet/.env.heroku.php
Graham Campbell 4803404808 Fixes
2014-12-29 20:07:11 +00:00

13 lines
272 B
PHP

<?php
$dbURL = parse_url(getenv('DATABASE_URL'));
$dbName = substr($dbURL["path"], 1);
return [
'DB_HOST' => $dbURL['host'],
'DB_DATABASE' => $dbName,
'DB_USERNAME' => $dbURL['user'],
'DB_PASSWORD' => $dbURL['pass'],
'DB_DRIVER' => 'pgsql',
];