From 11a5757303220839f1e38adfb9e6cdb434ef388f Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Sat, 14 Sep 2024 01:07:50 +0800 Subject: [PATCH 1/2] Laravel Vapor - Deployment day to production YD API Testing --- app/Console/Commands/V2/ProcessYDPortalDataV2Command.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Console/Commands/V2/ProcessYDPortalDataV2Command.php b/app/Console/Commands/V2/ProcessYDPortalDataV2Command.php index dd8163a7..f00eefb1 100644 --- a/app/Console/Commands/V2/ProcessYDPortalDataV2Command.php +++ b/app/Console/Commands/V2/ProcessYDPortalDataV2Command.php @@ -72,6 +72,10 @@ class ProcessYDPortalDataV2Command extends Command $count = 0; for ($x = $from; $x <= $to; $x++) { + if ($count >= 2) { + break; + } + $startDate = Carbon::today()->subDays($x); $startLimit = Carbon::parse('01-12-2021'); From 9882e5e75d3d835a763b1ce3dd7379a7a3750eda Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Sat, 14 Sep 2024 01:23:17 +0800 Subject: [PATCH 2/2] Laravel Vapor - Deployment day to production, Update custom log channel retention period for production only --- config/logging.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/logging.php b/config/logging.php index e9fbad04..6cc31d7c 100644 --- a/config/logging.php +++ b/config/logging.php @@ -73,7 +73,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => 3, //cief todo: retention to be updated + 'retention' => env('APP_ENV') === 'production' ? 90 : 3, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], @@ -144,7 +144,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => 3, //cief todo: retention to be updated + 'retention' => env('APP_ENV') === 'production' ? 90 : 3, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], @@ -168,7 +168,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => 3, //cief todo: retention to be updated + 'retention' => env('APP_ENV') === 'production' ? 90 : 3, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], @@ -192,7 +192,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => 3, //cief todo: retention to be updated + 'retention' => env('APP_ENV') === 'production' ? 90 : 3, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], @@ -217,7 +217,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => 3, //cief todo: retention to be updated + 'retention' => env('APP_ENV') === 'production' ? 90 : 3, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ], @@ -241,7 +241,7 @@ return [ 'secret' => env('AWS_CW_SECRET') ] ], - 'retention' => 3, //cief todo: retention to be updated + 'retention' => env('APP_ENV') === 'production' ? 90 : 3, 'level' => 'debug', 'groupNamePrefix' => env('CLOUDWATCH_LOGGROUP_PREFIX'), ],