lots of progress
This commit is contained in:
@@ -2,7 +2,29 @@
|
||||
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Schedule;
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote');
|
||||
|
||||
// Schedule uptime monitoring to run every 5 minutes
|
||||
Schedule::command('monitor:uptime')
|
||||
->everyFiveMinutes()
|
||||
->withoutOverlapping()
|
||||
->runInBackground()
|
||||
->appendOutputTo(storage_path('logs/uptime-monitoring.log'));
|
||||
|
||||
// Schedule SSL certificate monitoring to run daily
|
||||
Schedule::command('monitor:ssl')
|
||||
->daily()
|
||||
->withoutOverlapping()
|
||||
->runInBackground()
|
||||
->appendOutputTo(storage_path('logs/ssl-monitoring.log'));
|
||||
|
||||
// Schedule broken link monitoring to run weekly
|
||||
Schedule::command('monitor:links')
|
||||
->weekly()
|
||||
->withoutOverlapping()
|
||||
->runInBackground()
|
||||
->appendOutputTo(storage_path('logs/link-monitoring.log'));
|
||||
|
||||
Reference in New Issue
Block a user