luag2124
Set a Cron Job in Laravel
Don't get me wrong, I like Railway and I've loved it so far, but adding support for something like this would be really great. https://fly.io/docs/laravel/the-basics/cron-and-queues/
27 replies
Set a Cron Job in Laravel
With server access or first-party support this is'nt complicated at all, that's the whole point of the Laravel Scheduler, avoiding to write unecessary code or add unecessary services, but it's ok if ther's no other alternative I guess I don't have any other option
27 replies
Set a Cron Job in Laravel
Yeah... I saw this blog post earlier, but I am backing up my database data into Google Drive, not Amazon S3, and it's already working locally though, I know this is a good alternative, but I should be able to do it from the same service, right?
27 replies
Set a Cron Job in Laravel
That's only used to run and test the schedule locally... or what are you suggesting here?
As I said, to be able to run the cron jobs on the server it's necessary to to add a cron configuration entry to the server (crontab).
27 replies
Set a Cron Job in Laravel
Thank you for your answer @Brody
So if you read the documentation you just sent:
https://laravel.com/docs/10.x/scheduling#running-the-scheduler
It says:
"So, when using Laravel's scheduler, we only need to add a single cron configuration entry to our server that runs the schedule:run command every minute."
The problem with Railway is that there isn't any first-party support for cron jobs, or any other simple way to add this configuration entry. That's why I am trying to configure it by using the ts file.
27 replies