From f74c7357174a480d5a8ce281b1e55e756b575879 Mon Sep 17 00:00:00 2001 From: Daniel Trolezi Date: Mon, 23 Sep 2024 15:18:43 -0300 Subject: [PATCH] Fix APP_NAME env variable and remove call to connection on RedisController --- app/Http/Controllers/Admin/RedisController.php | 5 ++--- ecs/deployment-task.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Admin/RedisController.php b/app/Http/Controllers/Admin/RedisController.php index d5f669f..755cf05 100644 --- a/app/Http/Controllers/Admin/RedisController.php +++ b/app/Http/Controllers/Admin/RedisController.php @@ -18,13 +18,12 @@ class RedisController extends Controller )] public function keys(): JsonResponse { - $redis = Redis::connection(config('database.redis.connection')); $prefix = config('database.redis.options.prefix'); - $keys = $redis->keys('*'); + $keys = Redis::keys('*'); $data = []; foreach ($keys as $key) { - $value = $redis->get( + $value = Redis::get( str_replace($prefix, '', $key) ); diff --git a/ecs/deployment-task.json b/ecs/deployment-task.json index 1f672e8..afc4aa6 100644 --- a/ecs/deployment-task.json +++ b/ecs/deployment-task.json @@ -33,7 +33,7 @@ }, { "name": "APP_NAME", - "valueFrom": "/APP_DEBUG" + "valueFrom": "/APP_NAME" }, { "name": "APP_VERSION",