is your path to php correct?
Mar 20, 2017
4
Level 5
schedule dont work, command ok, cron job also seem ok?
The crob job seems to run fine every min.
Mar 20 13:02:01 myweb-01 CROND[37653]: (apache) CMD (php /home/web/laravel/artisan schedule:run >> /dev/null 2>&1)
Mar 20 13:03:01 myweb-01 CROND[37658]: (apache) CMD (php /home/web/laravel/artisan schedule:run >> /dev/null 2>&1)
Mar 20 13:04:01 myweb-01 CROND[37663]: (apache) CMD (php /home/web/laravel/artisan schedule:run >> /dev/null 2>&1)
Mar 20 13:05:01 myweb-01 CROND[37692]: (apache) CMD (php /home/web/laravel/artisan schedule:run >> /dev/null 2>&1)
Mar 20 13:06:01 myweb-01 CROND[37697]: (apache) CMD (php /home/web/laravel/artisan schedule:run >> /dev/null 2>&1)
when I add dd($schedule) in Kernel and run schedule:run, i got
Illuminate\Console\Scheduling\Schedule {#51
#events: array:1 [
0 => Illuminate\Console\Scheduling\Event {#406
+command: "'/usr/local/bin/php' 'artisan' email-reminder:review"
+expression: "*/10 * * * * *"
+timezone: null
+user: null
+environments: []
+evenInMaintenanceMode: false
+withoutOverlapping: false
+runInBackground: false
#filters: []
#rejects: []
+output: "/dev/null"
#shouldAppendOutput: false
#beforeCallbacks: []
#afterCallbacks: []
+description: null
}
]
}
The command run fine by itself when I use php artisan command.
Do you have any idea what goes wrong?
Please or to participate in this conversation.