R
Railway4mo ago
Kvasir

Is there a way to force redeploy if the last one was older than X days?

I usually limit redeploys based on watch patterns in a railway.toml file, but I would like to automatically force a redeploy if the last one was more than X days ago. Is there a straightforward way to accomplish this?
Solution:
yep you would need to programmatically call that mutation
Jump to solution
8 Replies
Percy
Percy4mo ago
Project ID: 41f3e5b0-3233-406e-938c-ed0cbe426163
Kvasir
Kvasir4mo ago
41f3e5b0-3233-406e-938c-ed0cbe426163
Adam
Adam4mo ago
Best way you could go about this is by forcing your app to crash on a cron schedule, then setting your App’s railway settings to always redeploy on crash
Brody
Brody4mo ago
that wouldn't cause a redoploy though
Kvasir
Kvasir4mo ago
i can just do it manually, but I would rather not have to remember
Brody
Brody4mo ago
its not something the platform offers natively, and a redeploy does not deploy new code anyway
Kvasir
Kvasir4mo ago
yeah. i was using the "redeploy with latest commit" new-ish function; was hoping to automate
Solution
Brody
Brody4mo ago
yep you would need to programmatically call that mutation
Want results from more Discord servers?
Add your server