Monday, April 3, 2017

My Laravel scheduler run only once each time I run it and then it stops

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?



via Ahmad Al- Hashlamoun

Advertisement