How to work with cron?
fastikprog
PROOP

2 years 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

2 years 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 • over 1 year ago


Status changed to Solved jake • over 1 year ago


fastikprog
PROOP

a year 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 • over 1 year ago


Status changed to Solved fastikprog • over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...