From 3b54107a30e4b2c3f1bb1d6be3fbe3faf5566dcc Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Wed, 16 Oct 2024 02:16:28 +0800 Subject: [PATCH] Laravel Vapor - Deployment day to production, update domain + enable schedule tasks --- app/Console/Kernel.php | 26 ++++++++++++-------------- vapor.yml | 4 +++- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index b4a3c863..fc9d5d5f 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -50,23 +50,21 @@ class Kernel extends ConsoleKernel ->withoutOverlapping(); if(env('APP_ENV') === 'production'){ - //cief todo: disable commands to avoid unintentional interfering with production starts - // $schedule->command('email-do-to-vt-command') - // ->dailyAt('10:00') - // ->withoutOverlapping(); + $schedule->command('email-do-to-vt-command') + ->dailyAt('10:00') + ->withoutOverlapping(); - // $schedule->command('seasonal-segmant-company-remove-command') - // ->dailyAt('01:00') - // ->withoutOverlapping(); + $schedule->command('seasonal-segmant-company-remove-command') + ->dailyAt('01:00') + ->withoutOverlapping(); - // $schedule->command('delete-bulk-download-files-command') - // ->hourly() - // ->withoutOverlapping(); + $schedule->command('delete-bulk-download-files-command') + ->hourly() + ->withoutOverlapping(); - // $schedule->command('booking-expired-command') - // ->dailyAt('02:00') - // ->withoutOverlapping(); - //cief todo: disable commands to avoid unintentional interfering with production + $schedule->command('booking-expired-command') + ->dailyAt('02:00') + ->withoutOverlapping(); // DISABLED BY DEFAULT // $schedule->command('purchase-order-autofill-command') diff --git a/vapor.yml b/vapor.yml index f97a0f56..95513481 100644 --- a/vapor.yml +++ b/vapor.yml @@ -3,7 +3,9 @@ name: exchange separate-vendor: true environments: production: - domain: production.exchange.izyim.com + domain: + - production.exchange.izyim.com + - exchange.cief-malaysia.com memory: 1024 cli-memory: 512 queues: