Configure Redis through environment variables. Closes #805

This commit is contained in:
James Brooks
2015-07-23 21:47:49 +01:00
parent 02cb04d36f
commit a0d354c3e9
2 changed files with 7 additions and 3 deletions

View File

@@ -20,3 +20,7 @@ MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ADDRESS=null
MAIL_NAME=null
REDIS_HOST=null
REDIS_DATABASE=null
REDIS_PORT=null

View File

@@ -124,9 +124,9 @@ return [
'cluster' => false,
'default' => [
'host' => '127.0.0.1',
'port' => 6379,
'database' => 0,
'host' => env('REDIS_HOST', '127.0.0.1'),
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_DATABASE', 0),
],
],