Restore any earlier version of your app

Every change to an app you build on Hercules saves a new version. If a change breaks the quote form or the dispatch board, open the Versions tab, pick the last version that worked and revert to it.

Reverting rolls back your app's code, configuration and database structure, and the records in your database stay as they are.

What can you do with version history?

See every change in order

The Versions tab lists each version with what was added or changed and when. It's the first place to look after a hand edit to the code breaks something.

Version Control
Versions tab listing numbered versions with what changed and when
Version switcher open next to the Publish button

Revert from two places

Click a version in the Versions tab or in the version switcher next to the Publish button, then confirm. Hercules recommends waiting about 15 seconds before you check the app.

Version Control

Go forward again

Hercules keeps every version, so you can return to a later one whenever you like. If you revert from version 10 to version 6 and then make a change, that change becomes version 11.

Version Control
Code diff for a version, listing every file it added or changed

Know what a version holds

A version is a complete snapshot of your app's code, configuration and database structure at one point in time. A version doesn't include files uploaded to Hercules Files & Media or records in your database.

Version Control
Create branch dialog with the Replicate production data toggle

Fix forward when records matter

If rolling back would undo good work, ask Hercules to fix the problem in a new chat instead. For a bigger fix, use a branch, a separate copy of the app for building and testing, with Replicate production data on to start from a one-time copy of your production records.

Branches
App card menu on the Dashboard with Duplicate

Duplicate an app before a big rework

From the Dashboard, open an app's three-dot menu and click Duplicate. The copy carries the code, files and settings, and starts unpublished.

Version Control

How do you undo a change that broke something?

  1. 1. Find the version that worked

    Open the Versions tab and find the last version saved before the break. In this hypothetical example, an estimator at a metal fabrication shop finds the version saved before someone edited the quote page by hand.

  2. 2. Revert and wait

    She clicks that version and confirms, and Hercules restores the earlier code and rebuilds the app. Quotes calculate again, so she goes back to sending bids, and quotes saved in the meantime are still in the database.

  3. 3. Make the change again with Hercules

    Add a 5% rush fee to quotes when the delivery date is less than a week away.

    Hercules makes the change the hand edit was trying to make and saves it as the next version.

What could a business do with it?

In this hypothetical example, a regional freight broker fixes a broken page forward instead of reverting, so a newer change their team relies on stays in place. A change to the carrier page leaves the rate column blank. The same version added an invoice field the billing team already uses, and a revert would remove both. The operations lead asks Hercules in a new chat to fix the rate column, and Hercules saves the fix as a new version.

Related features

Frequently asked questions

What should you know before you revert?
  • Versions run in one line with no branching. To build two things side by side, use branches.
  • Hercules names each version for you. You can't rename or tag versions.
  • See what each plan includes on the pricing page.
Why does a revert take time?

A revert restores the code, rebuilds the app and updates the preview. On a complex app that takes up to about 30 seconds. Version Control

Do Merge and Publish change my records?

Merge and Publish leave the records in your database as they are, the same as a revert. Version Control

How do I protect my records before a risky change?

Export your database from More, then Export, before you make the change. Database export and scheduled database backups each need a paid plan. Export data

What does a duplicate leave out?

A duplicate app leaves out domains, published URLs and commerce settings, among other things. Version Control

How do you get started?

Open any app and click Versions in the sidebar to see every change it has saved so far. Start building.