Search code examples
herokuheroku-toolbelt

Cloning locally previous Heroku version


Hi guys I have been looking for an answer all over internet, But cannot find any answer that is helping me

I have a django app on heroku. I would like to donwload a previous version of my app. It is currently v62 and I would like to download V59 locally

I tried to rollback and then to do

heroku git:clone -a guarded-tor-21020

but it still download V62. What is the commande to download V59 please ?

Thx you


Solution

  • After you've cloned your app you need to find a commit that corresponds to V59: heroku releases -a guarded-tor-2102. Look for line V59 Deploy <git-commit>.

    Now do git checkout <git-commit>.