Preview and versions
See your app running while it is built, and go back to any earlier version.
The preview
The Preview tab shows your app running. It is the real app, with its real database: what you type into it is saved.
The preview is for you and the people in your organization. Nobody else can open it, even with the link. To share an app, publish it.
The preview follows the work. It can be ahead of your published app, and for a moment in the middle of a change it can be broken. If the app stops working after a change, Cosmos says so in a sentence, keeps showing the last version that worked where it can, and the builder fixes it without being asked.
When an app is asleep
An app that nobody has used for a while goes to sleep. Nothing is lost. Open it and press Wake, and in a moment the preview is back and the agents can work again.
Sleeping affects the preview and the agents, not your published app, which keeps answering at its address.
How many apps can be awake at once, and for how many hours a month, depends on your plan.
Versions
Each time the builder changes the app, Cosmos saves a numbered version: 1, 2, 3. Versions are never overwritten or deleted.
A version says what the app's files were at that moment. It says nothing about whether that version was good: read what the tester found in the conversation.
There are three versions worth telling apart:
- The current version, the newest, which the preview shows.
- The published version, which the public sees. It changes only when you publish.
- Any earlier version, which you can go back to.
Go back to an earlier version
Choose an earlier version from the version shown in the app and switch to it. Its files come back as a new version at the top of the list, so nothing in between is lost and you can change your mind again.
Going back restores the app's files only. The information in its database, its users and its scheduled tasks stay as they are now, and may no longer match an old version of the app.
Restart
If the preview is stuck, Restart in the app's tools starts it again. It changes nothing in your app.
Download the code
The code is yours. Download code, in the app's menu in your workspace, gives you a ZIP with the source files of a version.
- On a paid plan it is included.
- On Free you pay for an app's code once, in credits, and can download every version after that. Cosmos shows the price before you confirm.
The ZIP holds the app's files. It does not include the database, its information, the app's users or its scheduled tasks, and downloading does not move the app anywhere: it keeps working in Cosmos.