Don't start service on deploy
I'm currently trying to deploy a Bun script that should be triggered by Cron. However, I don't want the service to run on deploy, which is currently the case. I've tried with Procfile and Dockerfile. How do I tell Railway not to start a service automatically on deploy?
Solution:Jump to solution
exactly, when you have the service using a cron expression it will be ran at the set interval
9 Replies
Project ID:
064ff56e-0a8e-43da-a5d3-c89df0c11e26
064ff56e-0a8e-43da-a5d3-c89df0c11e26
you are using railways cron scheduler right?
I did not setup the cron expression yet. My issue is that when I do
railway up
the script always starts on deploy.well of course it would thats what you want to happen when you do
railway up
ups I just see that when Cron is set up that doesn't happen
Solution
exactly, when you have the service using a cron expression it will be ran at the set interval
Thanks @Brody, you saved my evening 🙂
no problem!