Merge pull request #119 from SamuelMoraesF/master
Nginx to apache and some fixes
This commit is contained in:
2
Procfile
2
Procfile
@@ -1 +1 @@
|
||||
web: vendor/bin/heroku-php-nginx public
|
||||
web: vendor/bin/heroku-php-apache2 public
|
||||
|
||||
6
app.json
6
app.json
@@ -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"
|
||||
|
||||
@@ -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' => '',
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user