Skip to content

Commit 12b452e

Browse files
Use Redis for sessions and as cache
Signed-off-by: Christoph Wurst <[email protected]>
1 parent 2dfed45 commit 12b452e

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

config/app.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
| Available Settings: "single", "daily", "syslog", "errorlog"
102102
|
103103
*/
104-
'log' => env('APP_LOG', 'single'),
104+
'log' => env('APP_LOG', 'errorlog'),
105105
'log_level' => env('APP_LOG_LEVEL', 'debug'),
106106
/*
107107
|--------------------------------------------------------------------------

config/cache.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
|
1616
*/
1717

18-
'default' => env('CACHE_DRIVER', 'file'),
18+
'default' => env('CACHE_DRIVER', 'redis'),
1919

2020
/*
2121
|--------------------------------------------------------------------------

config/database.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
'cluster' => false,
110110

111111
'default' => [
112-
'host' => env('REDIS_HOST', 'localhost'),
112+
'host' => env('REDIS_HOST', 'cache'),
113113
'password' => env('REDIS_PASSWORD', null),
114114
'port' => env('REDIS_PORT', 6379),
115115
'database' => 0,

config/session.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
|
1717
*/
1818

19-
'driver' => env('SESSION_DRIVER', 'file'),
19+
'driver' => env('SESSION_DRIVER', 'redis'),
2020

2121
/*
2222
|--------------------------------------------------------------------------

storage/framework/sessions/.gitignore

-2
This file was deleted.

0 commit comments

Comments
 (0)