I've a Laravel 5.3 on an Azure instance, everything is working cool there except my task scheduler, I'm tryin to run an Artisan command automatically every midnight, when I run the same command from the CLI it works well. I tried to use this command as in the Laravel Doc:
* * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1
it worked out just once, then the process ends and not repeated for the 2nd round.
What should I do to let the scheduler run the task everyday?
P.S: here's my code how do I run the command through the kernel:
protected function schedule(Schedule $schedule)
{
$schedule->command('rentalRates:run')->daily();
}
via Ahmad Al- Hashlamoun