Reputation: 22404
Heroku has a "releases" feature that allows you to roll back to a specific deployment release. I've seen a lot of info about rolling back, but how do you roll forward again after rolling back?
Basically, I'd like to roll back to a particular release to see if it was the one that introduced some bugs. I have a feeling it isn't, so I'm pretty sure I'll be reverting back (rolling forward) to the latest release as soon as I find out.
And if it's not doable with Heroku releases, I imagine it is with Git. That said, if I use Git to do this, I don't want my local Git repo's history to be touched. I'd only want the Heroku repo to be rolled back/forward.
So... how?
Upvotes: 6
Views: 1979
Reputation: 3053
This seems very doable with the heroku client from their toolbelt.
heroku releases:info
and then
heroku rollback v502
to the forward version you want
Upvotes: 6
Reputation: 7078
Not possible at the moment.
Here is Heroku Release API:
https://api-docs.heroku.com/releases
Options:
You need to do it via Git, witch i think it is the better way in general.
/Edit:
The Git way:
git reset --hard <tag/branch/commit id>
Upvotes: 0