diff --git a/app/Console/Commands/Environment/RedisSetupCommand.php b/app/Console/Commands/Environment/RedisSetupCommand.php new file mode 100644 index 000000000..281a97bac --- /dev/null +++ b/app/Console/Commands/Environment/RedisSetupCommand.php @@ -0,0 +1,54 @@ +variables['CACHE_STORE'] = 'redis'; + $this->variables['QUEUE_CONNECTION'] = 'redis'; + $this->variables['SESSION_DRIVERS'] = 'redis'; + + $this->requestRedisSettings(); + + $this->call('p:environment:queue-service', [ + '--overwrite' => true, + ]); + + $this->writeToEnvironment($this->variables); + + $this->info($this->console->output()); + + return 0; + } +}