Can you try running the php /home/forge/default/artisan schedule:run command manually in your terminal? Just to double check that the paths & the php bin are correct.
Mar 15, 2021
4
Level 1
Scheduling tasks on laravel forge
Hello all.
I've been struggling for an hour or so to setup schedules on laravel to work on forge.
I've setup the cron on forge (I believe this is correct but I am not sure)
http://i.imgur.com/SR31MfD.png
I then have my schedule code:
$schedule->command('db:backup')->everyMinute();
This works when I run the command manually, but I cannot get it to work via scheduling.
Is there something I'm missing here?
Level 3
There you go then. You're not pointing to the right folder. You need to find the location of your Laravel installation and do that. Usually it's /home/forge/<domain-name>/artisan
1 like
Please or to participate in this conversation.