ThatsTasty
Explore posts from serversHow to build something triggerable by Railway cron
Currently I use cron-job.org to target a specific endpoint on an Express server I run. My understanding of Railway cron is that it would startup the entire service and therefore not work in the way I'm accustomed to. I'm not sure how to build a railway service that would do the same thing (be triggered by cron and successfully run)
The endpoint just reads a 3rd party API and then puts stuff into a database. How could I convert this to work with Railway? I assume have a service that is just this code but how would I wrap it up such that it ran for Railway cron? (iife? or still express somehow?)
Thanks!
10 replies