Answer the question
In order to leave comments, you need to log in
How to create 2 laravel sites on the same server and on the same redis?
On the same server, 2 sites written in Laravel are running.
Both sites use redis for sessions and both have in their database.php config
'redis' => [
'cluster' => false,
'default' => [
'host' => '127.0.0.1',
'port' => 6379,
'database' => 0,
],
],
Answer the question
In order to leave comments, you need to log in
The 'database' key must have different values. Set the first site to 0 and the second to 1 and they won't conflict, as long as you don't use server-level commands like FLUSHALL .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question