From e78d1af0fab6d9d79b24ace71b2d6cd159b715f2 Mon Sep 17 00:00:00 2001 From: Cory Fowler Date: Tue, 1 Dec 2015 14:15:02 -0800 Subject: [PATCH 1/3] added web.config --- public/web.config | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 public/web.config diff --git a/public/web.config b/public/web.config new file mode 100644 index 00000000..2da2a959 --- /dev/null +++ b/public/web.config @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + From a33c66cf4727ed22b460a31d1f67243f0fb2369c Mon Sep 17 00:00:00 2001 From: Cory Fowler Date: Tue, 1 Dec 2015 14:15:22 -0800 Subject: [PATCH 2/3] changed redis support to load config from env --- .env.example | 4 ++++ config/database.php | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 8eb8f575..7678d4cf 100644 --- a/.env.example +++ b/.env.example @@ -17,3 +17,7 @@ MAIL_PORT=2525 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null + +REDIS_HOST=localhost +REDiS_KEY= +REDIS_PORT=6379 diff --git a/config/database.php b/config/database.php index 5987be69..cfef6bd4 100644 --- a/config/database.php +++ b/config/database.php @@ -116,8 +116,9 @@ return [ 'cluster' => false, 'default' => [ - 'host' => '127.0.0.1', - 'port' => 6379, + 'host' => env('REDIS_HOST', 'localhost'), + 'password' => env('REDIS_KEY', ''), + 'port' => env('REDIS_PORT', 6379), 'database' => 0, ], From 4fba29c0ec7da3e12b7d8a6e08fdff3de11826f0 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 7 Dec 2015 12:03:49 -0600 Subject: [PATCH 3/3] fix problems --- .env.example | 8 ++++---- config/database.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 7678d4cf..031862be 100644 --- a/.env.example +++ b/.env.example @@ -11,13 +11,13 @@ CACHE_DRIVER=file SESSION_DRIVER=file QUEUE_DRIVER=sync +REDIS_HOST=localhost +REDIS_PASSWORD=null +REDIS_PORT=6379 + MAIL_DRIVER=smtp MAIL_HOST=mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null - -REDIS_HOST=localhost -REDiS_KEY= -REDIS_PORT=6379 diff --git a/config/database.php b/config/database.php index cfef6bd4..2b41a2c2 100644 --- a/config/database.php +++ b/config/database.php @@ -117,7 +117,7 @@ return [ 'default' => [ 'host' => env('REDIS_HOST', 'localhost'), - 'password' => env('REDIS_KEY', ''), + 'password' => env('REDIS_PASSWORD', ''), 'port' => env('REDIS_PORT', 6379), 'database' => 0, ],