Run your own commands on shared hosting
Hello,
I am currently deploying a laravel 6 app on a hetzner shared hosting account.
I pointed my subdomain to my fresh /laravel_project/public directory. Furthermore, I configured my db with the .env file.
However, my commands do not run yet, even though I scheduled them for certain time intervals!
Which file do I have to run in the cron-job manager so that my commands are going to run on time?
How would you do that?
I appreciate your replies!
You have to run php with the artisan schedule:run command, and do it every minute?
The recommended command from the docs is
cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
How you do this will depend what type of control panel you have and if you are allowed to run scheduled jobs
Please or to participate in this conversation.