From 48d1a0ce36eef9ee6aac8b15fabf30dd972a40fb Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 3 Dec 2014 21:59:42 -0600 Subject: [PATCH] working on some configuration changes. --- config/app.php | 2 +- config/cache.php | 2 +- config/local/app.php | 18 ------- config/local/database.php | 47 ------------------ config/local/mail.php | 98 -------------------------------------- config/packages/.gitkeep | 0 config/queue.php | 2 +- config/session.php | 2 +- config/testing/cache.php | 20 -------- config/testing/session.php | 21 -------- phpunit.xml | 2 + 11 files changed, 6 insertions(+), 208 deletions(-) delete mode 100644 config/local/app.php delete mode 100644 config/local/database.php delete mode 100644 config/local/mail.php delete mode 100644 config/packages/.gitkeep delete mode 100644 config/testing/cache.php delete mode 100644 config/testing/session.php diff --git a/config/app.php b/config/app.php index d4a04a0d..889a5dc3 100644 --- a/config/app.php +++ b/config/app.php @@ -13,7 +13,7 @@ | */ - 'debug' => false, + 'debug' => getenv('APP_DEBUG') ?: false, /* |-------------------------------------------------------------------------- diff --git a/config/cache.php b/config/cache.php index 5363ffa1..2e542501 100644 --- a/config/cache.php +++ b/config/cache.php @@ -15,7 +15,7 @@ | */ - 'driver' => 'file', + 'driver' => getenv('CACHE_DRIVER') ?: 'file', /* |-------------------------------------------------------------------------- diff --git a/config/local/app.php b/config/local/app.php deleted file mode 100644 index 5ceb76dc..00000000 --- a/config/local/app.php +++ /dev/null @@ -1,18 +0,0 @@ - true, - -]; diff --git a/config/local/database.php b/config/local/database.php deleted file mode 100644 index a42ca21d..00000000 --- a/config/local/database.php +++ /dev/null @@ -1,47 +0,0 @@ - [ - - 'mysql' => [ - 'driver' => 'mysql', - 'host' => 'localhost', - 'database' => 'homestead', - 'username' => 'homestead', - 'password' => 'secret', - 'charset' => 'utf8', - 'collation' => 'utf8_unicode_ci', - 'prefix' => '', - ], - - 'pgsql' => [ - 'driver' => 'pgsql', - 'host' => 'localhost', - 'database' => 'homestead', - 'username' => 'homestead', - 'password' => 'secret', - 'charset' => 'utf8', - 'prefix' => '', - 'schema' => 'public', - ], - - ], - -]; diff --git a/config/local/mail.php b/config/local/mail.php deleted file mode 100644 index c4fac1d0..00000000 --- a/config/local/mail.php +++ /dev/null @@ -1,98 +0,0 @@ - 'smtp', - - /* - |-------------------------------------------------------------------------- - | SMTP Host Address - |-------------------------------------------------------------------------- - | - | Here you may provide the host address of the SMTP server used by your - | applications. A default option is provided that is compatible with - | the Mailgun mail service which will provide reliable deliveries. - | - */ - - 'host' => 'mailtrap.io', - - /* - |-------------------------------------------------------------------------- - | SMTP Host Port - |-------------------------------------------------------------------------- - | - | This is the SMTP port used by your application to deliver e-mails to - | users of the application. Like the host we have set this value to - | stay compatible with the Mailgun e-mail application by default. - | - */ - - 'port' => 465, - - /* - |-------------------------------------------------------------------------- - | Global "From" Address - |-------------------------------------------------------------------------- - | - | You may wish for all e-mails sent by your application to be sent from - | the same address. Here, you may specify a name and address that is - | used globally for all e-mails that are sent by your application. - | - */ - - 'from' => ['address' => 'homestead@laravel.com', 'name' => 'Homestead'], - - /* - |-------------------------------------------------------------------------- - | E-Mail Encryption Protocol - |-------------------------------------------------------------------------- - | - | Here you may specify the encryption protocol that should be used when - | the application send e-mail messages. A sensible default using the - | transport layer security protocol should provide great security. - | - */ - - 'encryption' => 'tls', - - /* - |-------------------------------------------------------------------------- - | SMTP Server Username - |-------------------------------------------------------------------------- - | - | If your SMTP server requires a username for authentication, you should - | set it here. This will get used to authenticate with your server on - | connection. You may also set the "password" value below this one. - | - */ - - 'username' => '', - - /* - |-------------------------------------------------------------------------- - | SMTP Server Password - |-------------------------------------------------------------------------- - | - | Here you may set the password required by your SMTP server to send out - | messages from your application. This will be given to the server on - | connection so that the application will be able to send messages. - | - */ - - 'password' => '', - -]; diff --git a/config/packages/.gitkeep b/config/packages/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/config/queue.php b/config/queue.php index f09c3dde..310cc0cb 100755 --- a/config/queue.php +++ b/config/queue.php @@ -15,7 +15,7 @@ | */ - 'default' => 'sync', + 'default' => getenv('QUEUE_DRIVER') ?: 'sync', /* |-------------------------------------------------------------------------- diff --git a/config/session.php b/config/session.php index 6af184e7..2e3a1405 100644 --- a/config/session.php +++ b/config/session.php @@ -16,7 +16,7 @@ | */ - 'driver' => 'file', + 'driver' => getenv('SESSION_DRIVER') ?: 'file', /* |-------------------------------------------------------------------------- diff --git a/config/testing/cache.php b/config/testing/cache.php deleted file mode 100644 index 729ae3a8..00000000 --- a/config/testing/cache.php +++ /dev/null @@ -1,20 +0,0 @@ - 'array', - -]; diff --git a/config/testing/session.php b/config/testing/session.php deleted file mode 100644 index 46bf726a..00000000 --- a/config/testing/session.php +++ /dev/null @@ -1,21 +0,0 @@ - 'array', - -]; diff --git a/phpunit.xml b/phpunit.xml index b22af540..08522be9 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -16,5 +16,7 @@ + +