Migrating from heroku MySQL to PostgreSQL

This commit is contained in:
SamuelMoraesF
2014-12-29 19:06:08 +00:00
committed by Graham Campbell
parent 89c57e7c00
commit f0fde60cf7
3 changed files with 21 additions and 1 deletions

17
.env.heroku.php Normal file
View 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
View File

@@ -18,3 +18,6 @@ public/js/
npm-debug.log
.vagrant/
tests/_output/*
# Heroku
!.env.heroku.php

View File

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