changed redis support to load config from env

This commit is contained in:
Cory Fowler 2015-12-01 14:15:22 -08:00
parent e78d1af0fa
commit a33c66cf47
2 changed files with 7 additions and 2 deletions

View File

@ -17,3 +17,7 @@ MAIL_PORT=2525
MAIL_USERNAME=null MAIL_USERNAME=null
MAIL_PASSWORD=null MAIL_PASSWORD=null
MAIL_ENCRYPTION=null MAIL_ENCRYPTION=null
REDIS_HOST=localhost
REDiS_KEY=
REDIS_PORT=6379

View File

@ -116,8 +116,9 @@
'cluster' => false, 'cluster' => false,
'default' => [ 'default' => [
'host' => '127.0.0.1', 'host' => env('REDIS_HOST', 'localhost'),
'port' => 6379, 'password' => env('REDIS_KEY', ''),
'port' => env('REDIS_PORT', 6379),
'database' => 0, 'database' => 0,
], ],