Laravel Vapor - Deployment day to production, update domain + enable schedule tasks

This commit is contained in:
Dillon Ngo
2024-10-16 02:16:28 +08:00
parent 258a20f118
commit 3b54107a30
2 changed files with 15 additions and 15 deletions
+12 -14
View File
@@ -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')
+3 -1
View File
@@ -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: