2 months ago
Project ID ba726ff7-7939-43b9-a2c0-27f918bf9a1c
Hi, I have a Laravel 12 app that needs to execute a scheduling task. How do I set up the cron job to make it work.
To test the task local I use the command:php artisan sonda:view-reservations
Thanks in advance really need help with this.
4 Replies
My workaround
I had to duplicate my container app and call it cron, then I added my command to the custom start command my original command, and added the cron schedule on the second container.
2 months ago
That's actually the solution, you create another service with the same repository, define your start command and then set a Cron schedule
2 months ago
There's no way to change that as Cron uses UTC as its timezone. Convert your timezone to UTC and use it.