R
Railwayβ€’5mo ago
Artemka1806

Remove an old deployment after a new one has been successfully launched

Hello! I have a service with automatic deployment when committing to a specific Github repo branch. After the commit, the automatic build and deploy process starts. If everything is successful, then 2 instances of my service work. But I don't need this. So, how do I automatically delete the old container after a successful build of the new one? P.S. Sorry for my bad English, I used a translator πŸ™ƒ
Solution:
the old container is automatically removed after an overlap time, are you instead asking how to shorten this overlap time? if so, set a service variable RAILWAY_DEPLOYMENT_OVERLAP_SECONDS to 0
Jump to solution
4 Replies
Percy
Percyβ€’5mo ago
Project ID: N/A
Artemka1806
Artemka1806OPβ€’5mo ago
N/A
Solution
Brody
Brodyβ€’5mo ago
the old container is automatically removed after an overlap time, are you instead asking how to shorten this overlap time? if so, set a service variable RAILWAY_DEPLOYMENT_OVERLAP_SECONDS to 0
Artemka1806
Artemka1806OPβ€’5mo ago
Thanks!
Want results from more Discord servers?
Add your server