You can add scheduled jobs under Server Details -> YOUR SERVER -> Scheduler, e.g. php /home/forge/your-site/artisan schedule:run
How to run scheduler in forge?
Hi,
The video on scheduling tasks in Forge is outdated as Forge does not have a scheduler specific view. https://laracasts.com/series/learn-laravel-forge/episodes/11
So my question is how do I specify to forge that I want to run the schedule: run command, every minute for example?
Is it as simple as putting the following code in my deploy script?
php artisan schedule:run
If so, why is that the case? Does Forge under the hood check my Kernel app looking for tasks to run and then when I redeploy code, the Kernel gets updated and Froge keeps checking. Is that more or less it.
Also, how would I modify how often I want the scheduler to check for tasks? I've already defined all of my scheduling logic in my Kernel class just not sure how to run the scheduler...
Any help would be appreciated!
Please or to participate in this conversation.