CRON job to execute only one file
tvog
HOBBYOP

a year ago

Hello,

I'm trying to have a cron job to execute my crawl.js file every hour.

I've a procfile with:

```

worker: node crawl.js

web: node bot.js

```

Right now the CRON seems not to run crawl.js, any idea how I can fix the problem?

Solved

1 Replies

a year ago

Hello,

Whatever command you want to have run on the schedule would be done by setting a start command in the service settings.

https://docs.railway.com/overview/the-basics#service-settings


Status changed to Awaiting User Response Railway over 1 year ago


Railway
BOT

9 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 10 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...