schedule
This commit is contained in:
@@ -14,7 +14,7 @@ class Kernel extends ConsoleKernel
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $commands = [
|
protected $commands = [
|
||||||
\App\Console\Commands\FixStoragePermissions::class,
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -28,18 +28,6 @@ class Kernel extends ConsoleKernel
|
|||||||
|
|
||||||
// Log::info('Controllo schedule...');
|
// Log::info('Controllo schedule...');
|
||||||
// $schedule->command('inspire')->hourly();
|
// $schedule->command('inspire')->hourly();
|
||||||
|
|
||||||
// Pianifica l'esecuzione del comando ogni giorno a mezzanotte
|
|
||||||
$schedule->command('fix:storage-permissions')->daily()->at('00:30')->before(function () {
|
|
||||||
Log::info('Running fix:storage-permissions');
|
|
||||||
});
|
|
||||||
|
|
||||||
$schedule->command('fix:storage-permissions')->daily()->at('11:35')->before(function () {
|
|
||||||
Log::info('Running fix:storage-permissions');
|
|
||||||
});
|
|
||||||
$schedule->command('fix:storage-permissions')->daily()->at('09:35')->before(function () {
|
|
||||||
Log::info('Running fix:storage-permissions');
|
|
||||||
});
|
|
||||||
|
|
||||||
$schedule->command('backup:clean')->daily()->at('02:00')->before(function () {
|
$schedule->command('backup:clean')->daily()->at('02:00')->before(function () {
|
||||||
Log::info('Running backup:clean command');
|
Log::info('Running backup:clean command');
|
||||||
@@ -64,6 +52,11 @@ class Kernel extends ConsoleKernel
|
|||||||
->before(function () {
|
->before(function () {
|
||||||
Log::info('Running product:startday command');
|
Log::info('Running product:startday command');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Pianifica l'esecuzione del comando ogni giorno a mezzanotte
|
||||||
|
$schedule->command('fix:storage-permissions')->daily()->at('00:30')->before(function () {
|
||||||
|
Log::info('Running fix:storage-permissions');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user