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