heroku cloud

Zu einem früheren Commit-Zustand in Heroku zurückkehren

Dieser Artikel stellt vor, wie man zu einem früheren Commit-Zustand in Heroku zurückkehrt. Um eine in Heroku bereitgestellte App zu einem früheren Commit-Zustand zurückzusetzen, überprüfen Sie die Version mit dem Befehl <code>heroku releases</code>…

Shou Arisaka
2 Min. Lesezeit
8. Okt. 2025

Dieser Artikel stellt vor, wie man zu einem früheren Commit-Zustand in Heroku zurückkehrt.

Um eine in Heroku bereitgestellte App zu einem früheren Commit-Zustand zurückzusetzen, können Sie die Version mit dem Befehl heroku releases überprüfen und mit heroku rollback [version] zu jeder Version zurückkehren.

Unten ist ein Beispiel für die Befehlsausführung und -ausgabe.

yuis@yuis-VirtualBox:~/share/myapp$ heroku releases
   Warning: heroku update available from 7.7.4 to 7.7.8
=== quiet-sands-44976 Releases - Current: v7
v7  Deploy fc0b4554                                                                                            [email protected]  2018/08/16 06:55:55 +0900 (~ 33m ago)
v6  Deploy 7056b51a                                                                                            [email protected]  2018/08/16 01:13:50 +0900 (~ 6h ago)
v5  Deploy 132fc657                                                                                            [email protected]  2018/08/15 19:08:44 +0900 (~ 12h ago)
v4  Set LANG, RACK_ENV, RAILS_ENV, RAILS_LOG_TO_STDOUT, RAILS_SERVE_STATIC_FILES, SECRET_KEY_BASE config vars  [email protected]  2018/08/15 19:08:43 +0900 (~ 12h ago)
v3  Attach DATABASE (@ref:postgresql-flexible-72093)                                                           [email protected]  2018/08/07 22:10:55 +0900
v2  Enable Logplex                                                                                             [email protected]  2018/08/07 21:43:21 +0900
v1  Initial release                                                                                            [email protected]  2018/08/07 21:43:20 +0900

yuis@yuis-VirtualBox:~/share/myapp$ heroku rollback v6
   Warning: heroku update available from 7.7.4 to 7.7.8
Rolling back quiet-sands-44976 to v6... done, v8
    Rollback affects code and config vars; it doesn't add or remove addons.
▸    To undo, run: heroku rollback v7

yuis@yuis-VirtualBox:~/share/myapp$ heroku releases
›   Warning: heroku update available from 7.7.4 to 7.7.8
=== quiet-sands-44976 Releases - Current: v8
v8  Rollback to v6                                                                                             [email protected]  2018/08/16 07:30:59 +0900 (~ 38s ago)
v7  Deploy fc0b4554                                                                                            [email protected]  2018/08/16 06:55:55 +0900 (~ 35m ago)
v6  Deploy 7056b51a                                                                                            [email protected]  2018/08/16 01:13:50 +0900 (~ 6h ago)
v5  Deploy 132fc657                                                                                            [email protected]  2018/08/15 19:08:44 +0900 (~ 12h ago)
v4  Set LANG, RACK_ENV, RAILS_ENV, RAILS_LOG_TO_STDOUT, RAILS_SERVE_STATIC_FILES, SECRET_KEY_BASE config vars  [email protected]  2018/08/15 19:08:43 +0900 (~ 12h ago)
v3  Attach DATABASE (@ref:postgresql-flexible-72093)                                                           [email protected]  2018/08/07 22:10:55 +0900
v2  Enable Logplex                                                                                             [email protected]  2018/08/07 21:43:21 +0900
v1  Initial release                                                                                            [email protected]  2018/08/07 21:43:20 +0900

Diesen Artikel teilen

Shou Arisaka 8. Okt. 2025

🔗 Links kopieren