#add git monitor
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -4,4 +4,5 @@ return [
|
||||
App\Providers\AppServiceProvider::class,
|
||||
App\Providers\ClientServiceProvider::class,
|
||||
App\Providers\EnvServiceProvider::class,
|
||||
App\Providers\GitMonitorServiceProvider::class,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user