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:Jump to solution
I think you want
RAILWAY_DEPLOYMENT_OVERLAP_SECONDS=0
https://docs.railway.app/reference/variables#user-provided-configuration-variables...4 Replies
Project ID:
d8c2d7d4-9cc2-4de3-a784-cb082a468bda
Solution
I think you want
RAILWAY_DEPLOYMENT_OVERLAP_SECONDS=0
https://docs.railway.app/reference/variables#user-provided-configuration-variableswould this be the appropriate place to configure that?
yes