私はHerokuが初めてです。悪いコードをサーバーにプッシュした後heroku rollback
、以前のバージョンに戻していました。次に、このロールバックを自分のコンピューターに複製しようとしました。
git clone git@heroku.com:<project>.git <dir>
残念ながら、これはロールバックではなく、破損したヘッドを複製します。特定の以前のバージョンを実際に複製する方法はありますか?
When you do rollbacks, the head of your Heroku Git repo will no longer reflect the running state of you app. Check your releases:
$ heroku releases
Rel Change By When
---- ---------------------- ------------------- -------------
v52 Config add AWS_S3_KEY shanley@heroku.com 5 minutes ago
v51 Deploy de63889 kendra@heroku.com 7 minutes ago
v50 Deploy 7c35f77 katie@heroku.com 3 hours ago
The de63889
values are Git commit shas. With those, you can check out that commit locally:
git checkout de63889