mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
13 lines
272 B
PHP
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',
|
|
];
|