Migrating from heroku MySQL to PostgreSQL
This commit is contained in:
committed by
Graham Campbell
parent
89c57e7c00
commit
f0fde60cf7
17
.env.heroku.php
Normal file
17
.env.heroku.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
$dbURL = parse_url(getenv('CLEARDB_DATABASE_URL'));
|
||||||
|
$dbName = substr($dbURL["path"], 1);
|
||||||
|
|
||||||
|
return array(
|
||||||
|
|
||||||
|
'DB_HOST' => $dbURL['host'],
|
||||||
|
'DB_DATABASE' => $dbName,
|
||||||
|
'DB_USERNAME' => $dbURL['user'],
|
||||||
|
'DB_PASSWORD' => $dbURL['pass'],
|
||||||
|
'DB_DRIVER' => 'mysql',
|
||||||
|
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -18,3 +18,6 @@ public/js/
|
|||||||
npm-debug.log
|
npm-debug.log
|
||||||
.vagrant/
|
.vagrant/
|
||||||
tests/_output/*
|
tests/_output/*
|
||||||
|
|
||||||
|
# Heroku
|
||||||
|
!.env.heroku.php
|
||||||
|
|||||||
Reference in New Issue
Block a user