Draft, live and releases
Each project has two copies of its app: a draft you change freely, and a live copy your users see. Publishing moves the draft to live.
Draft and live#
| Draft | Live | |
|---|---|---|
| Who sees it | You, in Preview | Anyone you let in: public, or only you while private |
| Changes | After every chat turn or push | Only when you publish |
| Data | Its own database and storage, with sample data | Its own database and storage, with your real data |
| Outside requests | Never sent; kept in an outbox | Sent only to hosts in the release’s outbound list |
Publishing#
- Click Publish. Stackly builds a release from the draft.
- It rehearses the release on a copy of the live data, applying new migrations, so a broken change shows up before your users see it.
- The review shows what changes, including the hosts the release may send to, with new ones marked.
- When you confirm, the release goes live after its health check passes.
Publishing is always a person’s click. Pushes from the CLI and chat turns never change live.
Rollbacks and data restores#
- Roll back to an earlier release if a new one misbehaves.
- Restore the data saved with a release, if a change damaged it. Restoring replaces the live data, so newer records can be lost.
- Versions in the draft are separate: they go back in the code, not in live.
Database changes#
Changes to the database are migration files, applied in order. A migration that already ran can never change or be removed; each change is a new file. Allowed statements are creating tables and indexes, adding columns, and inserting rows. Sample data runs only in the draft. Details in Limits.
Before each publish
Try the main flows in the draft, read the publish review, and check new outbound hosts. Keep your own backup of data that matters. Stackly’s release data is a safety net, not a backup service.