Skip to content

Commit d7f818a

Browse files
committed
desactivation des commandes en mode debug
1 parent af5223c commit d7f818a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

app/Console/Kernel.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ protected function schedule(Schedule $schedule)
2626
{
2727
$schedule->command('media-library:delete-old-temporary-uploads')->daily();
2828
$schedule->command('lcm:delete-old-unverified-users')->daily();
29-
$schedule->command('lcm:post-article-to-twitter')->everyFourHours();
30-
$schedule->command('lcm:post-article-to-telegram')->everyFourHours();
31-
$schedule->command('lcm:send-unverified-mails')->weeklyOn(1, '8:00');
32-
$schedule->command('sitemap:generate')->daily();
33-
$schedule->command(\Spatie\Health\Commands\RunHealthChecksCommand::class)->everyMinute();
29+
30+
if (app()->environment('production')) {
31+
$schedule->command('lcm:post-article-to-twitter')->everyFourHours();
32+
$schedule->command('lcm:post-article-to-telegram')->everyFourHours();
33+
$schedule->command('lcm:send-unverified-mails')->weeklyOn(1, '8:00');
34+
$schedule->command('sitemap:generate')->daily();
35+
$schedule->command(\Spatie\Health\Commands\RunHealthChecksCommand::class)->everyMinute();
36+
}
3437
}
3538

3639
/**

0 commit comments

Comments
 (0)