Laravel Task Scheduler Issues
Posted: Sat Apr 07, 2018 7:20 pm
Dear members,
I'm using Laravel from last few months and today I have tried their task scheduler which is found here > https://laravel.com/docs/5.5/scheduling
From their document I have found this command to insert into my vestacp command input box
* * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1
I have modified the path like this
* * * * * php /home/admin/web/example.com/server_files/artisan schedule:run >> /dev/null 2>&1
But its not working and I'm not getting any email notification like I was getting notifications in CPanel.
I can see there is a option in vestacp that you can turn ON or OFF the notifications, but mine is ON but still can't see any errors etc in my email or somewhere else.
Please if anyone has some tutorial about to setup laravels cron job then please help me out. I know how to create cron job via wget https://example.com/yourfile.php
But I need the cron job like laravel has mentioned in their document and I'm not sure how to modify the code so vestacp can run my command.
Note: Further information can be provided if needed from someone.
Regards
Tahir Afridi
I'm using Laravel from last few months and today I have tried their task scheduler which is found here > https://laravel.com/docs/5.5/scheduling
From their document I have found this command to insert into my vestacp command input box
* * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1
I have modified the path like this
* * * * * php /home/admin/web/example.com/server_files/artisan schedule:run >> /dev/null 2>&1
But its not working and I'm not getting any email notification like I was getting notifications in CPanel.
I can see there is a option in vestacp that you can turn ON or OFF the notifications, but mine is ON but still can't see any errors etc in my email or somewhere else.
Please if anyone has some tutorial about to setup laravels cron job then please help me out. I know how to create cron job via wget https://example.com/yourfile.php
But I need the cron job like laravel has mentioned in their document and I'm not sure how to modify the code so vestacp can run my command.
Note: Further information can be provided if needed from someone.
Regards
Tahir Afridi