Versions and publishing
Sajto separates what you work on from what visitors see. That lets you change the site freely and publish it only when it is ready.
Working copy and published version
- Name
Working copy- Type
- preview
- Description
The files the assistant edits. You see them at the preview address
slug.preview.sajto.page. Visitors cannot see it.
- Name
Published version- Type
- public site
- Description
The latest published version, available at
slug.sajto.page(and at your domain, if you connected one).
The tools from the Files and Images groups change only the working copy. The site_publish tool moves it to the public site.
Publishing
Publishing creates an immutable, numbered version of all files (1, 2, 3 and so on) and switches the public site to it in one atomic step. Visitors never see a half-published site: one moment they see the old version, the next the new one.
- You can add a short message to the version, visible in the history.
- If nothing has changed since the last version, no new version is created and the latest one is simply made live again.
- Missing
sitemap.xml,robots.txtand404.htmlare generated automatically. Your own versions of these files take precedence. - After publishing you get a short quality summary (Validation). It does not block publishing.
- A single site can get up to 30 new versions per hour.
History and comparing
site_history lists versions from the newest: number, message, time, number of files and a mark for the live version. site_diff shows the differences: with no arguments between the live and the working version (that is, what will change after publishing), and with version numbers between two published ones.
Rolling back
site_rollback (or the Restore button in the panel) makes an earlier version the public one, instantly and without copying files. Sajto keeps all published versions, so you can go back to any of them.
Restoring changes only what visitors see. The working copy stays as it is, so the next publish publishes it again as a new version. After going back to an older version, ask the assistant to fix or revert the changes in the files before you publish.
A deleted file and history
A file deleted from the working copy (file_delete) stays in older versions, so site_rollback can bring it back.
Automatic publishing
In site_update_settings you can turn on autoPublish. Then every file change is published by itself a few seconds after the last edit. It is convenient for small changes, but visitors may briefly see an unfinished site, so for larger work it is better to leave manual publishing (the default setting).
In the panel
On the site details page in the panel you can publish the working copy (with an optional message) and restore an earlier version. The Versions table shows the number, message, time, number of files and a “live” mark for the live version.

