Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,075 of 9,075 pages
About the help in other languages
All help pages

History and rollback

The history of a target in Setup > Static publishing - every publish and rollback, the tags and the commits - and going back to an earlier publish as a new commit, for experts, with Verify it's you.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/static-publishing/history-and-rollback.md

On this page

History and rollback

Every publish of a target is a commit with its own tag, static/<target>/<n>, and stays in the history. Going back does not delete anything: it makes a new commit with the files of an earlier publish, tags it with the next number and pushes it. No tag ever moves and nothing is forced.

What you'll have at the end

The public site showing an earlier publish again, with the rollback in the history.

The history

Open History on the target. It lists:

  • Publishes: every publish and rollback, newest first, with when, state, version (the number of its tag, a dash when it made none), short commit id (a link to the commit on GitHub when the repository is there), push state, who and how many files changed. The date opens the page of the run. On a narrow screen each run is a block of labeled lines.
  • Tags: newest first, each with its commit (a link to the commit on GitHub when the repository is there).
  • Commits: the last commits of the branch.
The history: the box On GitHub, the publishes with their version and commit, the rollback form, the tags and the commits
The history: the box On GitHub, the publishes with their version and commit, the rollback form, the tags and the commits

The card of the target in Setup > Static publishing shows the same in short: the published Version with its tag, the Commit (a link to the commit on GitHub when the repository is there) and the badge of the Last publish.

A target in Setup > Static publishing: its siteaccesses, Version 4 with the tag static/demo/4, the commit, the last publish and the stale pages
A target in Setup > Static publishing: its siteaccesses, Version 4 with the tag static/demo/4, the commit, the last publish and the stale pages

Roll back

Go back to an earlier publish is for experts and needs the policy staticpublish/publish:

  1. Choose the publish to go back to.
  2. Tick I know what this changes.
  3. Type the name of the tag again, for example static/github-public/2.
  4. Press Roll back and confirm with Verify it's you.

The rollback runs in the background and its page opens. A build that is not published yet blocks a rollback: publish it or throw it away first (Build, preview and publish).

To undo a rollback, roll back again to the publish before it, or simply build and publish.

On the console

./console exp:static:rollback <target> <n> lists what would change; with --apply it rolls back. More in History and rollback on the console.

Next step

Who may publish.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x