How to work with cron?
fastikprog
PROOP

10 months ago

I'm using node js for dev. I want to start a cron service using a railway. I set the time in the settings, but I don't understand how to set up the run command or file for the cron.

Solved

2 Replies

jake
EMPLOYEE

10 months ago

We have native cron jobs. We'd recommend you just use those

https://docs.railway.com/reference/cron-jobs


Status changed to Awaiting User Response Railway 10 months ago


Status changed to Solved jake 10 months ago


fastikprog
PROOP

9 months ago

If you also get stuck, you need to create a folder to store cron files in the repository and upload files there, then create a service and connect the repo, and there you don't need to specify the vordir to keep all types and modules working, then just run your cron file.


Status changed to Awaiting Railway Response Railway 10 months ago


Status changed to Solved fastikprog 10 months ago


Loading...