# Versions, preview, publish and roll back

Check each new version of your website on its preview address, publish it, and put an earlier version back when something's wrong.

A broken website costs you calls and quotes, so every change gets checked before visitors see it. Each change is a new numbered version with its own preview address, the live one keeps running while you check, and if something slips through, the previous version is one click away.

[Open Websites now](/tenant/?open=settings/websites)

## What each status means

On the website's page, **Versions** lists every version:

| Status | What it means |
|---|---|
| **Building** | Being built, usually a few minutes. The page checks every 10 seconds. |
| **Ready** | Built, with a preview address. Not live. |
| **Live** | What visitors see now. |
| **Earlier** | Was live before. Keep it: it's a restore point. |
| **Failed** | Didn't build. The reason and a **Build log** link are shown. |

## Check a version

1. Open **System settings**, then **Websites**, and click the website's tile.
   ![Open the website](files/9b2bf5b5-a16f-4e3d-94c7-d9610f2831ce/website-versions.webm#t=4.2,18.1)
2. Click **Preview** next to the version.
   ![Preview](files/9b2bf5b5-a16f-4e3d-94c7-d9610f2831ce/website-versions.webm#t=22.6,24.2)
3. Look at every page you changed, on a computer and on a phone.

## Publish it

1. Click **Publish** next to the version.
   ![Publish](files/9b2bf5b5-a16f-4e3d-94c7-d9610f2831ce/website-versions.webm#t=24.2,25.8)
2. Read the question (*Publish version … ? It replaces what visitors see now.*) and confirm.

The version is live straight away. The tile's picture is taken again a little later.

## Roll back

1. Find the earlier version in **Versions**.
2. Click **Roll back to this** and confirm.
   ![Roll back to this](files/9b2bf5b5-a16f-4e3d-94c7-d9610f2831ce/website-versions.webm#t=25.7,27.3)

Visitors see that version again within seconds. The version you rolled back from stays in the list, so you can publish it again later.

## Tidy the list

A version that was never live can be taken off the list: click **Archive** and confirm. Nothing visitors see changes. A version that has been live can't be archived, since it's a restore point.

## Good to know

- **The very first version goes live by itself**, because there's nothing else to show. Every later version waits for **Publish**.
- **Feeds and settings reach the website with the next version.** After changing them, publish a new version. Rolling back to a version from before such a change still uses today's feeds and settings: the platform sets it up again first, so it can take a few minutes instead of seconds.
- **Versions made by the Module Builder** read your development copy while in preview, and your live data once published. See [Make or change a website with the Module Builder](article:48d315f8-7364-4385-80d0-3a133e7b6666).
- **An upload from an old copy of the code is refused**, so nobody can quietly undo a newer change. Your web designer gets the latest code first (*pull*). See [Websites with Claude and the command line](article:8a279ac0-4012-4ede-ad92-8a257c2badee).
- **Preview addresses are public.** Anyone with the link can open one.
- **Who can publish:** Workspace Admins, and anyone whose role has *Publish websites*. People with *Manage websites* only can make versions but not put them live. See [Users and roles: create and edit roles](article:88d4e232-d5b8-4909-b452-cfe96d3d550f).


Source: https://datavisions.ai/docs/system-settings/workspace/websites-2/versions-preview-publish-and-roll-back
