Wednesday, April 15, 2020
Starting The Scheduler
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
Starting The Scheduler
When using the scheduler, you only need to add the following Cron entry to your server. If you do not know how to add Cron entries to your server, consider using a service such as Laravel Forge which can manage the Cron entries for you:
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
This Cron will call the Laravel command scheduler every minute. When the schedule:run command is executed, Laravel will evaluate your scheduled tasks and runs the tasks that are due.
https://laravel.com/docs/6.x/scheduling#background-tasks
Labels:
Laravel
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment