diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 3f65cdfb..ecff7f45 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -38,39 +38,39 @@ class Kernel extends ConsoleKernel ->dailyAt('01:00') ->withoutOverlapping(); - //cief todo: disable commands to avoid unintentional interfering with production starts - // $schedule->command('curl-vt-command') - // ->cron('0 8 * * *') - // ->withoutOverlapping(); + if(env('APP_ENV') === 'production'){ + $schedule->command('curl-vt-command') + ->cron('0 8 * * *') + ->withoutOverlapping(); - // $schedule->command('curl-yd-order-list-command') - // ->cron('0 9-18/3 * * *') - // ->withoutOverlapping(); + $schedule->command('curl-yd-order-list-command') + ->cron('0 9-18/3 * * *') + ->withoutOverlapping(); - // $schedule->command('fix-packinglist-command') - // ->cron('30 9-18/3 * * *') - // ->withoutOverlapping(); + $schedule->command('fix-packinglist-command') + ->cron('30 9-18/3 * * *') + ->withoutOverlapping(); - // $schedule->command('fix-duplicate-container-reference-command') - // ->cron('0 1 * * *') - // ->withoutOverlapping(); + $schedule->command('fix-duplicate-container-reference-command') + ->cron('0 1 * * *') + ->withoutOverlapping(); - // $schedule->command('invoice-generate-command') - // ->hourly() - // ->withoutOverlapping(); + $schedule->command('invoice-generate-command') + ->hourly() + ->withoutOverlapping(); - // $schedule->command('billplz-failed-callback-fix-command') - // ->hourly() - // ->withoutOverlapping(); + $schedule->command('billplz-failed-callback-fix-command') + ->hourly() + ->withoutOverlapping(); - // $schedule->command('check-storage-invoices-group-transactions-command') - // ->dailyAt('0:01') - // ->withoutOverlapping(); + $schedule->command('check-storage-invoices-group-transactions-command') + ->dailyAt('0:01') + ->withoutOverlapping(); - // $schedule->command('permits-reminder-send-command') - // ->dailyAt('09:30') - // ->withoutOverlapping(); - //cief todo: disable commands to avoid unintentional interfering with production ends + $schedule->command('permits-reminder-send-command') + ->dailyAt('09:30') + ->withoutOverlapping(); + } } //Commands Version 1: Before AWS else