R
Railway•13mo ago
Louis

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:
exactly, when you have the service using a cron expression it will be ran at the set interval
Jump to solution
9 Replies
Percy
Percy•13mo ago
Project ID: 064ff56e-0a8e-43da-a5d3-c89df0c11e26
Louis
Louis•13mo ago
064ff56e-0a8e-43da-a5d3-c89df0c11e26
Brody
Brody•13mo ago
you are using railways cron scheduler right?
Louis
Louis•13mo ago
I did not setup the cron expression yet. My issue is that when I do railway up the script always starts on deploy.
Brody
Brody•13mo ago
well of course it would thats what you want to happen when you do railway up
Louis
Louis•13mo ago
ups I just see that when Cron is set up that doesn't happen
Solution
Brody
Brody•13mo ago
exactly, when you have the service using a cron expression it will be ran at the set interval
Louis
Louis•13mo ago
Thanks @Brody, you saved my evening 🙂
Brody
Brody•13mo ago
no problem!
Want results from more Discord servers?
Add your server