#add git monitor

This commit is contained in:
2025-12-18 10:18:25 +08:00
parent 2ec44b5665
commit 5f6bba1d9f
18 changed files with 889 additions and 20 deletions

View File

@@ -1,5 +1,6 @@
<?php
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
@@ -22,4 +23,15 @@ return Application::configure(basePath: dirname(__DIR__))
})
->withExceptions(function (Exceptions $exceptions): void {
//
})->create();
})
->withSchedule(function (Schedule $schedule): void {
$schedule->command('git-monitor:check')
->everyTenMinutes()
->withoutOverlapping()
->runInBackground();
$schedule->command('git-monitor:cache')
->dailyAt('02:00')
->withoutOverlapping();
})
->create();