R
Railway5mo ago
Shreyas

Remove current deployment before building new one.

Project ID: d8c2d7d4-9cc2-4de3-a784-cb082a468bda For context, I’m running a Java application (a Discord bot) on a Railway project. Railway builds from my GitHub repository. Due to how my bot shuts down and saves data, I would prefer if Railway could fully remove the current deployment before deploying the new one whenever commits are pushed to the branch Railway pulls from. I suspect that, at times, both deployments run concurrently for a short period, causing issues because the new deployment pulls data that hasn’t been serialized by the old deployment. Are there any solutions to this?
Solution:
I think you want RAILWAY_DEPLOYMENT_OVERLAP_SECONDS=0 https://docs.railway.app/reference/variables#user-provided-configuration-variables...
Jump to solution
4 Replies
Percy
Percy5mo ago
Project ID: d8c2d7d4-9cc2-4de3-a784-cb082a468bda
Solution
Brody
Brody5mo ago
Shreyas
ShreyasOP5mo ago
would this be the appropriate place to configure that?
No description
Brody
Brody5mo ago
yes
Want results from more Discord servers?
Add your server