Publishing your app¶
Publishing takes a project you built in Crios and puts it live on the internet behind your own domain. Crios prepares the deployment, builds the container images, deploys them, and wires up DNS and TLS — you provide a domain name and one DNS record.
The Publish control¶
The Publish control sits at the top right of the project's Sessions tab, and on the page of every session that runs an app: in the workspace panel's App tab, beside the app's name, or in the top bar when the page has no workspace panel. It is one button that tells you what is serving:
| The control reads | What it means |
|---|---|
| Publish | The project isn't published. |
| Publishing… | A publish is running, including while it waits for your DNS record. |
Live a3f9c1e |
The app is live at commit a3f9c1e, and no newer code has been detected. When you aren't pointing at it, the control shrinks to the live dot and the commit. |
Publish bb12def · a3f9c1e live |
The project's code has moved on: a3f9c1e is serving, bb12def is the latest commit on the project's default branch. Commits that leave the code unchanged, such as an empty merge, don't count. |
| Publish failed · retry | The last publish failed. |
Through the REST API, GET /api/v1/projects/{id}/publication reports the same comparison for a live app in its head_revision and update_available fields.
Click the control to open the publishing panel; while it reads Live or Publishing…, use the arrow at its right. The control appears once the project is recognized as a publishable web app and a build has stopped working: on the Sessions tab once any of the project's sessions is idle, paused, waiting for your input, completed, failed, or cancelled, and on a session page once that session is. While a session's agent is still working on a publishable app that has never been published, the session's App tab reads You can publish once the agent finishes in the control's place. The control is offered only to people who can publish (see below); everyone else sees it only while the project has a publication, to follow its state. A project that is already published always shows it.
The same panel opens from:
- The Publish button on the Your app is ready card that a finished build posts in the chat.
- The Publishing section of project settings.
Publishing requires manage access on the project. Without it you can follow a publication but not change it, and before the first publish the panel reads Publishing requires manage access on this project.
Publications¶
The project's Publications page, under More in the project's tab bar, shows its publication — a project has at most one — with the status, the domain, a lock when the site is password-protected, the certificate authority, and the time of the last change. The row is expanded to show its activity and monitoring (see Watching a publication); Manage takes you to the publishing panel in project settings. A project that was never published shows Not published yet, with Go to sessions. A project that builds something other than a web app shows "This project can't be published" instead.
Organization admins also get an overview of every publication in the organization under Organization → Publications: Every published app instance in your organization, with live status, logs and alerts. Filter it to All, Live, In progress, Failed, or Other, search by project or domain, and click a project name to go to that project's Publications tab. Old links to the standalone Publications page land on the Organization page.
Eligibility¶
The panel tells you whether the project can be published. Web applications qualify; CLI tools, mobile apps, and libraries cannot be served behind a domain and do not see the feature. If the project's type has not been recorded yet, Crios checks the repository first and refuses a project that is clearly not a web app; anything it cannot judge goes to the publishing agent, which verifies it and stops if it is not a deployable web app. A project without a repository yet can't be published; run a build session first.
Checks before you publish¶
A build checks its app the way publishing will before it ends. For Node.js, Python, and PHP apps, it starts each server component in turn with its published start command, production settings, and a fresh test database, and watches it for 90 seconds: it must answer its health check within a minute and keep running. An app that crashes, exits, or answers its health check with an error goes back for a fix while the build is still running, instead of failing its first publish. The publishing session runs the same start check when it writes the app's deployment files.
Where your organization allows it, a build also rehearses its publish before it ends: Crios tries the publish out of sight with throwaway data, and the session fixes what fails. You see no step for it; the build just takes a few minutes longer. Rehearsals run only for organizations that chose Metrics or Full on the Crios Self Enhance card of the organization's settings, and only where the installation has them switched on.
What happens when you publish¶
Enter a domain (for example app.example.com), optionally tick Password protect this site (see password protection), and click Publish. The panel then walks a timeline:
- Plan — an agent session inspects your project and plans the deployment.
- Chart — the agent generates the deployment configuration for your app and its components.
- Build — container images for your app are built.
- Deploy — the app starts on the Crios cluster. The publication reads as deploying until the new version actually answers.
- DNS — Crios waits for your domain's A record to point at the load balancer; the panel shows the exact IPs to use.
- Certificate — once DNS resolves, a certificate is issued automatically.
- Live — your app is serving at
https://your-domain.
When Crios recognizes the project's stack, or the repository already contains a valid Crios publish chart, it needs no agent for the first two steps: the publish starts at Build, and the activity log notes that it was published without an agent session. Builds of web apps and APIs plan such a chart in: the build adds a Dockerfile and the publish chart (deploy/crios-publish) to the repository whether or not you asked for them. When the Dockerfile that came with a project builds on an older Node.js than the one Crios built and tested the app on (the files Crios added before October 2026 use Node.js 20), Crios builds the image on the current version; the files in the repository stay as they are. Otherwise, while the agent is producing deploy assets you can click Watch the publishing session live to follow it like any other session; afterwards the link reads View publishing session.
Progress polls automatically; the DNS step is the only one that waits on you — see custom domains and TLS for the record to create.
Crios refuses to start a publish, and the panel says why, when:
- The organization is at its publication limit: "This organization has reached its publication limit (N). Unpublish a project before publishing another." Every publication that is not unpublished counts, failed ones included; republishing a project takes no new slot.
- Another publish in the organization is starting at the same moment: "Another publish in this organization is in progress. Try again in a moment."
- The app's address is still held by the kept uploads of another project's unpublished app (see Unpublish): "This app's address is held by the kept files of another project's unpublished app. Rename the project to publish it under a new address."
- The domain is one of the platform's own hostnames ("that hostname is reserved by the platform") or is already used by another publication.
- The domain is under the platform's own domain and is not exactly one label under its publish domain. On app.crios.ai that is every crios.ai name except
<name>.publish.crios.ai: "names under crios.ai are reserved by the platform: use one label under publish.crios.ai, like myapp.publish.crios.ai, or a domain you own". A Republish of an app that already holds such a name, or one of the platform's own hostnames, is refused the same way: change its domain first.
If a step fails, the timeline pins a red marker to it and the panel shows Publishing failed with the error.
Automatic repair¶
When a publish fails on the cluster — an image build, the deployment, a rollout that never finished, or an app that keeps crashing or fails its live check — or the publishing session stops before it has produced the app's deployment settings, Crios repairs it on its own, up to two attempts. The panel shows which attempt is running: "Automatic repair attempt 1 of 2 — a fresh publishing session is fixing the last failure."
- An app that crashes, fails its live check, or fails its image build goes straight to a publishing session that reads the failure and fixes the code. The Build step already runs a failing build a second time before it counts as failed, since a build can fail for a passing reason.
- If the repository's own publish chart or Dockerfile failed to build, or Crios refused the chart, a repair or a Republish doesn't retry the same files: Crios publishes the app on its own deployment setup when the app has no deployment on the cluster, and otherwise starts a publishing session that fixes the files.
- If the app's page hands out its AI key, the key is revoked at once; if it shows the password of your app's sign-in, Crios changes the password. The repair's publish carries the new ones.
- When a repair finds that the cause is outside the app's code, no further repair runs: the publication stays failed until you fix the cause and publish again.
- When the organization or the installation is at its limit of running sessions, the repair is skipped and Activity says so; publish again shortly.
If the repairs don't succeed, the panel reads "Automatic repair ran 2 times without success — check the publishing session, then republish once the cause is fixed." A publishing session that itself fails or is cancelled is not repaired automatically. Either way, fix the cause (the publishing session has the detail) and publish again; a publish you start yourself gets two fresh repair attempts.
Your app's data¶
If your app uses the project's database, the published app connects to that database rather than to one of its own inside the deployment, so the data the app wrote during the build is the data it serves.
On app.crios.ai, and on installations that keep each project's database on a shared server, build sessions work on the same database the published app runs on. Publishing copies nothing, so the published app finds what the preview showed. Once the app is published, a session works on live data: the agent is told to keep its migrations additive and to remove demo data only when you ask, and Crios refuses the common commands that would drop or empty the database or roll back its migrations. On app.crios.ai, Crios also keeps a snapshot of the database before a session starts writing to it (the newest three, at most one every 6 hours).
On installations that give builds a separate development copy of the database, the first publish fills the production database with a copy of the development one, demo data included, including when an agent's memory or the workflow editor created the production database earlier (unless it already holds any of the app's tables); later publishes never copy again, so production data is kept. The same goes for each named database: its production copy is made from its development copy at the first publish, or at the next publish for one added later, and the app reaches it through DATABASE_URL_<NAME>. Key-value and document stores start empty in production. See Project databases for how the development copy and the published app's database relate, and how to wipe demo data.
The published app also gets:
- the certificate authority of its database, where the database has one of its own, so drivers that verify the encrypted connection work;
- an uploads volume, if the app keeps the files its users upload under
UPLOADS_DIR. The files survive restarts and republishes, and an unpublish (see Storage); - the email and password of your app's sign-in, from which an app with a sign-in creates its first administrator at every start;
- its own key for the AI endpoint, where the installation offers one (see Variables Crios provides).
Once a publication exists, the panel's Database seeding card has Seed database on boot: it runs the app's seed.mjs after migrations every time a container starts, so use it only for seeds that are safe to run repeatedly. It applies from the next publish.
Watching a publication¶
Expanding a publication shows its Activity and five observability tabs — Traffic, Monitors, Status, Logs, and Alerts.
Activity is the publication's event log: every status change (planned → building → deploying → live), every action you took (publish, republish, domain or password change, SSL provider change), and every automatic repair Crios attempted after a failed rollout — newest first, with who or what triggered it. When the publishing session stops to ask you something (a value only you can supply, for example), Activity says so with the question: open the session to answer. A session left waiting for a day is stopped, and an automatic repair that gets stuck ends as failed with the reason, ready for you to republish.
Logs has two sources: Runtime streams the running app's logs; Build streams the container image build logs for this app — the place to look when the Build step fails. Choose how far back to look with Show last; the view refreshes every 10 seconds.
While a publish is running, each component carries its own status chip in the publishing panel: Pending, Building, Built, Deploying, Deployed, or Failed. A failed component prints its error message inline beside the chip, so you can tell which image or component failed without opening the full log.
If your installation has no observability stack, the tabs show Observability is not configured on this installation.
Republish after changes¶
Publishing deploys a snapshot. After further sessions change your project, the Publish control shows the new commit next to the one that is live. Open the panel and click Republish to publish the latest commit — the domain, DNS record, certificate, and password are reused, so there is nothing to reconfigure. A publication that was published without an agent session is republished the same way. Republish and Change domain are hidden while the app is being planned, built, or deployed.
Changes to the project's environment variables reach the live app without a republish.
Changing the domain¶
Use Change domain on an existing publication, enter the new name, and click Save domain. The publication goes back to Awaiting DNS: point the new name's A record at the same load balancer IPs, and a certificate is issued for the new name. The old name stops being served.
Unpublish¶
Unpublish asks for confirmation, then takes the domain offline and removes the deployed app, its certificate, and every data volume except its uploads from the cluster. The app's AI key is revoked. It is also how you stop a publish that is stuck: a publishing session still running for it is stopped too. The domain becomes free for other projects.
The uploads volume, which holds the files the app's users uploaded, stays until someone deletes it from the project's Storage page; publishing the app again takes it back. While it is kept, no other project can publish under the app's address.
Warning
Unpublishing deletes the other data volumes of the deployment itself: a database that ran inside the published app does not survive. The project's own database, if the app uses one, stays with the project. The project itself — code, sessions, knowledge — is untouched and can be published again later.