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