2 years ago
I might be overthinking it, but I'm wondering if railway up will do more than I want. I don't really want to run the railway cli attached to a repository, instead I'd like to do something like railway deploy --project my-project-uuid --service adjective-noun and have that trigger Railway to pull the new image and push it out.
Is this sensible or weird?
2 Replies
2 years ago
Unfortunately, the CLI does not provide a way to trigger a redeploy for a given service, the next alternative would be calling Railway's public API with curl to trigger a redeployment -
https://docs.railway.app/reference/public-api
You would want the `serviceInstanceRedeploy` mutation.
2 years ago
With this PR our community member milo has done, this would now be possible.
https://github.com/railwayapp/cli/pull/510