File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,14 @@ protected function schedule(Schedule $schedule)
26
26
{
27
27
$ schedule ->command ('media-library:delete-old-temporary-uploads ' )->daily ();
28
28
$ 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
+ }
34
37
}
35
38
36
39
/**
You can’t perform that action at this time.
0 commit comments