计划任务

This commit is contained in:
邓皓元 2018-12-11 17:15:28 +08:00
parent 53b5eb2408
commit 7508fcbc42

View File

@ -25,7 +25,8 @@ class Kernel extends ConsoleKernel
*/ */
protected function schedule(Schedule $schedule) protected function schedule(Schedule $schedule)
{ {
// $logPath = storage_path('logs/artisan.log');
$schedule->command('real:sync-mongo')->cron('* * * * *')->withoutOverlapping()->appendOutputTo($logPath);
} }
/** /**