diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 1bde17c0..59c4765b 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -14,7 +14,7 @@ class Kernel extends ConsoleKernel * @var array */ protected $commands = [ - \App\Console\Commands\FixStoragePermissions::class, + ]; /** @@ -28,18 +28,6 @@ class Kernel extends ConsoleKernel // Log::info('Controllo schedule...'); // $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 () { Log::info('Running backup:clean command'); @@ -64,6 +52,11 @@ class Kernel extends ConsoleKernel ->before(function () { 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'); + }); } /**