This commit is contained in:
Graham Campbell
2014-12-29 20:07:11 +00:00
parent f0fde60cf7
commit 4803404808
3 changed files with 7 additions and 14 deletions

View File

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

4
.gitignore vendored
View File

@@ -7,6 +7,7 @@
.env.*.php
.env.php
config.codekit
!.env.heroku.php
# Assets development
/node_modules
@@ -18,6 +19,3 @@ public/js/
npm-debug.log
.vagrant/
tests/_output/*
# Heroku
!.env.heroku.php

View File

@@ -1 +1 @@
web: vendor/bin/heroku-php-apache2 public
web: vendor/bin/heroku-php-nginx public