Merge pull request #434 from cachethq/enable-debug-mode

Enable debug mode via APP_DEBUG env var. Closes #433
This commit is contained in:
James Brooks
2015-01-27 17:51:39 +00:00
5 changed files with 3 additions and 19 deletions

View File

@@ -1,6 +1,7 @@
<?php
return [
'APP_DEBUG' => getenv('APP_DEBUG') ?: false,
'DB_DRIVER' => 'mysql',
'DB_HOST' => 'localhost',
'DB_DATABASE' => 'cachet',

View File

@@ -4,6 +4,7 @@ $dbURL = parse_url(getenv('DATABASE_URL'));
$dbName = substr($dbURL["path"], 1);
return [
'APP_DEBUG' => getenv('APP_DEBUG') ?: false,
'DB_HOST' => $dbURL['host'],
'DB_DATABASE' => $dbName,
'DB_USERNAME' => $dbURL['user'],

View File

@@ -13,7 +13,7 @@ return [
|
*/
'debug' => false,
'debug' => getenv('APP_DEBUG') ?: false,
/*
|--------------------------------------------------------------------------

View File

View File

@@ -1,18 +0,0 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error that occurs within your
| application. If disabled, a simple generic error page is shown.
|
*/
'debug' => true,
];