mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-24 11:43:33 +01:00
Merge pull request #114 from GrahamForks/db
Migrating from heroku MySQL to PostgreSQL
This commit is contained in:
commit
1c47f52239
12
.env.heroku.php
Normal file
12
.env.heroku.php
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?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',
|
||||||
|
];
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,6 +7,7 @@
|
|||||||
.env.*.php
|
.env.*.php
|
||||||
.env.php
|
.env.php
|
||||||
config.codekit
|
config.codekit
|
||||||
|
!.env.heroku.php
|
||||||
|
|
||||||
# Assets development
|
# Assets development
|
||||||
/node_modules
|
/node_modules
|
||||||
|
Loading…
x
Reference in New Issue
Block a user