php - No scheduled commands are ready to run in Laravel -


i'm trying run laravel scheduler, working on local machine when push production , php artisan schedule:run returns

no scheduled commands ready run.

maybe miss understanding whole concept of setting scheduling in laravel

this crontab: * * * * * php /var/www/laravel/artisan schedule:run >> /dev/null 2>&1

<?php  namespace app\console;  use illuminate\console\scheduling\schedule; use illuminate\foundation\console\kernel consolekernel;  class kernel extends consolekernel {     /**      * artisan commands provided application.      *      * @var array      */     protected $commands = [      ];      /**      * define application's command schedule.      *      * @param  \illuminate\console\scheduling\schedule  $schedule      * @return void      */     protected function schedule(schedule $schedule)     {         // update lots once hour         $schedule->call('app\http\controllers\sync\lotcontroller@dumplots')->hourly();         // update auctions once hour         $schedule->call('app\http\controllers\sync\auctionscontroller@dumpauctions')->hourly();         // update companies once hour         $schedule->call('app\http\controllers\sync\companiescontroller@dumpcompanies')->hourly();         // update models once hour         $schedule->call('app\http\controllers\sync\modelscontroller@dumpmodels')->hourly();         // update bid's result's , date's         $schedule->call('app\http\controllers\sync\bidcontroller@syncall')->hourly();         // update statistics once day @ 00:00         $schedule->call('app\http\controllers\sync\statscontroller@dumpstats')->daily();     }      /**      * register closure based commands application.      *      * @return void      */     protected function commands()     {         require base_path('routes/console.php');     } } 


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -