Rollback

I’d love to be able to roll-back to a previous version. Imagine a bug was pushed to production, and having to wait 15 min for the fix to be deployed seems too long. Can we have rollback to at least previous version, even just retained for 24 hours would be great.

5 Likes

Yeah I want this too. This is on our medium term list, we’re doing some architecture work first and then we can (hopefully) ship orchestration changes much quicker.

2 Likes

Is this still in progress? Or, is there a way to do this by specifying a docker image in the fly.toml file?

I’d also love to be able to specify a previous release number and roll back to it, something like fly deploy --rollback=212

We, unfortunately, haven’t shipped this yet. We’re furiously replacing Nomad so we’ve gotten behind on quick fixes for now.

You can run fly deploy -i <url> to deploy a specific Docker image. The only way to get that is to look at the logs during a deploy, though. We don’t have a simple way to show those from previous versions.

2 Likes

Interesting! Would love to see a blog post about this.

1 Like

Sorry for an ‘any update’ post but… any update on this potential feature?

Would be awesome for closing the gap with our current platform (h*roku), even if only available in API (vs dashboard/flyctl).

4 Likes

+1 on ‘any update’. No rollback is kind of a non-starter for any app serving customers. Gotta be able to rollback quickly if a mistake happens. Thanks for any updates you can provide!

4 Likes

Need this fly deploy rollback feature now:pray:
While trying to setup an SSH server on our Fly VM, we managed to “break” it and the deployment failed so now nothing works … :cry:

1 Like

Well, a specific rollback feature is one for Fly however in the meantime I think you can kind of make your own: run fly releases --image to get a list of the releases. And in that table you can see the image/hash of each deployment. So if you want to rollback to a particular version, look for its image (right-hand column) and deploy that image e.g fly deploy -i registry.fly.io/your-app-name@sha256-long-hash-here-from-that-table.

I’m not sure how long Fly stores images for, however I assume all the ones listed are available to deploy.

3 Likes