Merge branch 'dillon/70-laravel-vapor' into 'master'

Laravel Vapor - Disable all schedule commands + maintenance page

See merge request CIEFWorldwideSdnBhd/exchange-2.0!179
This commit is contained in:
Dillon Ngo
2024-10-15 17:15:52 +00:00
2 changed files with 49 additions and 19 deletions
+19 -19
View File
@@ -31,27 +31,27 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')->hourly();
$schedule->command('mail:EmailDoToVTCommand')->dailyAt('10:00')->withoutOverlapping();
// // $schedule->command('inspire')->hourly();
// $schedule->command('mail:EmailDoToVTCommand')->dailyAt('10:00')->withoutOverlapping();
$schedule->command('seasonalSegmantCompany:remove')
->dailyAt('01:00')
->appendOutputTo(storage_path().'/logs/soft-delete-seasonal-segmant-company.log')
->withoutOverlapping();
$schedule->command('delete:bulk-download-files')
->hourly()
->appendOutputTo(storage_path().'/logs/delete-bulk-download-files.log')
->withoutOverlapping();
$schedule->command('booking:expired')
->dailyAt('02:00')
->appendOutputTo(storage_path().'/logs/expire-booking.log')
->withoutOverlapping();
// $schedule->command('purchaseOrder:autoFill')
// ->dailyAt('03:00')
// $schedule->command('seasonalSegmantCompany:remove')
// ->dailyAt('01:00')
// ->appendOutputTo(storage_path().'/logs/soft-delete-seasonal-segmant-company.log')
// ->withoutOverlapping();
// $schedule->command('delete:bulk-download-files')
// ->hourly()
// ->appendOutputTo(storage_path().'/logs/delete-bulk-download-files.log')
// ->withoutOverlapping();
// $schedule->command('booking:expired')
// ->dailyAt('02:00')
// ->appendOutputTo(storage_path().'/logs/expire-booking.log')
// ->withoutOverlapping();
// // $schedule->command('purchaseOrder:autoFill')
// // ->dailyAt('03:00')
// // ->withoutOverlapping();
}
/**
+30
View File
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Site Under Maintenance</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
text-align: center;
padding: 50px;
}
.content {
background: white;
padding: 20px;
border-radius: 10px;
display: inline-block;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<div class="content">
<h1>We'll be back soon!</h1>
<p>Sorry for the inconvenience but we're performing some maintenance at the moment. We'll be back online shortly!</p>
<p>&mdash; CIEF EXCHANGE</p>
</div>
</body>
</html>