Created
April 21, 2017 20:59
-
-
Save madalinignisca/dad06a7bc2beb7e664dd703c56695386 to your computer and use it in GitHub Desktop.
Heroku Postgres DB for Drupal 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ... | |
# using a Heroku Postgresql DB | |
$heroku_db_url = parse_url($_ENV['DATABASE_URL']); | |
$databases['default']['default'] = array( | |
'driver' => 'pgsql', | |
'database' => substr($heroku_db_url['path'], 1), | |
'username' => $heroku_db_url['user'], | |
'password' => $heroku_db_url['pass'], | |
'host' => $heroku_db_url['host'], | |
'prefix' => $_ENV['DATABASE_PREFIX'], | |
); | |
///... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment