[PROMOÇÃO] Assine com + 30% de desconto ANUAL MENSAL (últimas horas)
Thiago de Freitas Pereira
Criador Thiago de Freitas Pereira 08/06/2023

Boa tarde, eu não estou conseguindo rodar esse projeto com docker, poderiam me ajudar por favor ?

Manager Carlos Ferreira 08/06/2023

Olá, Thiago!
Tudo bem?

Ajudo sim, claro!

Qual o problema? Me dê mais detalhes por favor.

Carlos Ferreira
Criador Thiago de Freitas Pereira 08/06/2023

https://prnt.sc/6AfHAI6WRpGD

 

https://prnt.sc/gdIvlMjqSdZt

 
[2023-06-08 21:12:10] production.ERROR: Class 'Predis\Client' not found {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Class 'Predis\\Client' not found at /var/www/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PredisConnector.php:25)
[stacktrace]
#0 /var/www/vendor/laravel/framework/src/Illuminate/Redis/RedisManager.php(79): Illuminate\\Redis\\Connectors\\PredisConnector->connect(Array, Array)
#1 /var/www/vendor/laravel/framework/src/Illuminate/Redis/RedisManager.php(61): Illuminate\\Redis\\RedisManager->resolve('default')
#2 /var/www/vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php(223): Illuminate\\Redis\\RedisManager->connection('default')
#3 /var/www/vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php(92): Illuminate\\Cache\\RedisStore->connection()
#4 /var/www/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(195): Illuminate\\Cache\\RedisStore->put('hr3E8z6KEzlaoAC...', 'a:1:{s:6:\"_flas...', 120)
#5 /var/www/vendor/laravel/framework/src/Illuminate/Session/CacheBasedSessionHandler.php(66): Illuminate\\Cache\\Repository->put('hr3E8z6KEzlaoAC...', 'a:1:{s:6:\"_flas...', 120)
#6 /var/www/vendor/laravel/framework/src/Illuminate/Session/Store.php(129): Illuminate\\Session\\CacheBasedSessionHandler->write('hr3E8z6KEzlaoAC...', 'a:1:{s:6:\"_flas...')
#7 /var/www/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(87): Illuminate\\Session\\Store->save()
#8 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(218): Illuminate\\Session\\Middleware\\StartSession->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))
#9 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\Foundation\\Http\\Kernel->terminateMiddleware(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))
#10 /var/www/public/index.php(60): Illuminate\\Foundation\\Http\\Kernel->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))
#11 {main}
"}

 
 
 
APP_NAME='nome do app'
APP_URL=http://localhost:8989
APP_KEY=base64:Z5N+iOBVoMS25FLsA/fubZm3OqJNgIw0Sn57TW28Oc4=

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=nome_que_desejar_db
DB_USERNAME=root
DB_PASSWORD=root

CACHE_DRIVER=redis
QUEUE_CONNECTION=redis
SESSION_DRIVER=redis

REDIS_HOST=redis
REDIS_PASSWORD=null
REDIS_PORT=6379
 
Thiago de Freitas Pereira
Manager Carlos Ferreira 08/06/2023

Como está essa configuração desse arquivo?
https://github.com/especializati/curso-laravel-api-cache/blob/main/config/cache.php#L76

--

Para resolver esse erro, basta instalar o package predis:
composer require predis/predis

Carlos Ferreira
Sabe a Solução? Ajude a resolver!

Precisa estar logado para conseguir responder a este ticket!

Clique Aqui Para Entrar!