Merge pull request #119 from SamuelMoraesF/master

Nginx to apache and some fixes
This commit is contained in:
James Brooks
2014-12-29 21:01:14 +00:00
3 changed files with 4 additions and 24 deletions

View File

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

View File

@@ -12,11 +12,11 @@
"success_url": "/setup",
"repository": "https://github.com/cachethq/Cachet",
"addons": [
"cleardb"
"heroku-postgresql"
],
"env": {
"ENV": "heroku",
"BUILDPACK_URL": "https://github.com/heroku/heroku-buildpack-php"
"ENV": { "value": "heroku", "description": "Do not modify this value to work on Heroku" },
"BUILDPACK_URL": { "value": "https://github.com/heroku/heroku-buildpack-php", "description": "Do not modify this value to work on Heroku" }
},
"scripts": {
"postdeploy": "php artisan migrate --env=heroku; php artisan key:generate"

View File

@@ -1,20 +0,0 @@
<?php
$dbURL = parse_url(getenv('CLEARDB_DATABASE_URL'));
$dbName = substr($dbURL["path"], 1);
return [
'default' => 'cleardb',
'connections' => [
'cleardb' => [
'driver' => 'mysql',
'host' => $dbURL['host'],
'database' => $dbName,
'username' => $dbURL['user'],
'password' => $dbURL['pass'],
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
],
],
];