luag2124
luag2124
RRailway
Created by luag2124 on 6/4/2023 in #✋|help
Set a Cron Job in Laravel
It's just my point of view @Brody as a developer that has been using Railway for a small period of time, my intention is not to compare or criticize what we have in a bad way
27 replies
RRailway
Created by luag2124 on 6/4/2023 in #✋|help
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
RRailway
Created by luag2124 on 6/4/2023 in #✋|help
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
RRailway
Created by luag2124 on 6/4/2023 in #✋|help
Set a Cron Job in Laravel
That's the purpose of the Laravel Scheduler
27 replies
RRailway
Created by luag2124 on 6/4/2023 in #✋|help
Set a Cron Job in Laravel
Why? 😮
27 replies
RRailway
Created by luag2124 on 6/4/2023 in #✋|help
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
RRailway
Created by luag2124 on 6/4/2023 in #✋|help
Set a Cron Job in Laravel
The goal is to make a database backup, but I first tried to do a simple: info("Hello World!"); to begin with, but it didn''t work either
27 replies
RRailway
Created by luag2124 on 6/4/2023 in #✋|help
Set a Cron Job in Laravel
Are you sure about this? I've make many tests and I am still not able to make my scheduled tasks work, how am I supposed to run php artisan schedule:work in prod?
27 replies
RRailway
Created by luag2124 on 6/4/2023 in #✋|help
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
RRailway
Created by luag2124 on 6/4/2023 in #✋|help
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
RRailway
Created by luag2124 on 6/4/2023 in #✋|help
Set a Cron Job in Laravel
919d7c14-3b5b-4e9d-b55f-8be1a2de52d3
27 replies