1

I have, let's say 10 deployments on Heroku of a web application; I would like to rollback to the 6th release

The first step is to rollback on Heroku, then I have to git clone the web application through this command

heroku git:clone -a myapp

My question is, how to update the developpment files, locally, do I have to delete manually all the folders and the files of the app, and replaced them by the folders and files downloaded from git clone ? does the Git will remain the same ?

Many thanks

Abdel
  • 71
  • 8

1 Answers1

0

"Running on a rolled-back release is meant as a temporary fix to a bad deployment."

In order to rollback your code you have a few different options. Just note that the --hard flag will destroy any local modifications.

Community
  • 1
  • 1
kripy
  • 91
  • 4
  • thank you, just an important question for me, if I execute "git reset --hard xxxx", will the local files be updated automatically (with the previous Git) ? many thanks – Abdel May 08 '17 at 21:10
  • Yes. So just be careful to not overwrite any new code. – kripy Jun 24 '17 at 23:17