Publish
Publishing and Hosting
Publish your Capacity site at its own address in one click and update it when you choose. What can be published today, where it is hosted, and the server sizes.
Capacity hosts what it builds. Publishing takes one click, in the editor, and the site is then reachable by anyone at its own address, with HTTPS.
Publishing needs a paid plan. See pricing.
Two addresses
| Address | What it is |
|---|---|
preview--yourproject.capacity.studio | The preview: your work in progress, as you see it in the editor |
yourproject.capacity.studio | The published app: what your visitors see |
The preview changes with every change you ask for. The published app only changes when you publish again, so you can keep working without your visitors seeing half-finished work.
You can then put the published app on your own domain.
Publish
- 1Click Publish
The button is at the top right of your project. It opens the Publish tab.
- 2Confirm
The first time, the tab says Ready to go live? Click Publish. There is nothing to configure.
- 3Wait for the steps to finish
You see the steps go by. When it is done the tab says Your app is live!
Update
Once the app is live, the top bar button reads Update and the Publish tab shows a Live badge, the address, View app and Update app. Click Update whenever you want what you see in the preview to become what your visitors see.
If a publish fails, the tab says Deployment failed and the version that was online stays online.
The Publish tab
| Sub-tab | What it holds |
|---|---|
| Overview | The address, the app's type and where it is hosted |
| Details | The page title and description, the icon, the social image, the Built with Capacity badge, and whether visitors may remix the app |
| Domains | Custom domains |
What can be published
| Project | Publishing |
|---|---|
| A website | Yes. It is a set of pages with no server of its own, published to a content delivery network: there is nothing to size or monitor, and hosting it never uses credits. |
| A backend, and a website linked to one | Not yet. They run in their preview, and Publish answers that publishing linked projects is not available yet. |
| An app with its own server, built from Claude, ChatGPT or Mistral | Yes, on a server of its own. See Apps with their own server. |
See Websites and backends for what each one is.
Where an app is hosted
The region is chosen when a project is created and cannot be changed afterwards. When a project offers the choice, the options are USA and Europe (hosted in Paris, France). An app hosted in Europe shows Hosted in Paris, France in its Overview.
Apps with their own server
An app built through the connector that has a server is published on a server of its own, shared with no other project. When you publish, the server is created or updated, its address and certificate are set up, and Capacity waits for the app to answer before calling it live. Its Publish tab has three more sub-tabs: Logs, Metrics and Manage.
Apps hosted in Europe run on one fixed server size: these three sub-tabs are not available for them yet.
Server size
Every such app starts on the smallest server, which is included in your plan. In Publish → Manage you can give it more:
| Machine size | CPU | Memory | Credits per day |
|---|---|---|---|
| Shared 1x | 1 shared | 256 MB | Included |
| Shared 1x | 1 shared | 512 MB | 1 |
| Shared 1x | 1 shared | 1 GB | 2 |
| Shared 2x | 2 shared | 2 GB | 4 |
| Performance 1x | 1 dedicated | 2 GB | 6 |
| Performance 2x | 2 dedicated | 4 GB | 10 |
Choose a size and click Apply Changes. Changing size restarts the server briefly.
Auto-stop
| Setting | What it does |
|---|---|
| Stop when idle (default) | The server stops when nobody is using the app and starts again on the next visit. The first visitor after a quiet period waits a moment. |
| Suspend when idle | Same, with a faster restart. |
| Always on | The server never stops by itself. |
Scaling
Machine count runs your app on up to five servers, and Min always-on keeps some of them running at all times.
What it costs
- The default setup (256 MB, stop when idle, one machine) costs no credits.
- A larger size costs the credits per day in the table, Always on on the smallest size costs 1 credit per day, and each extra machine multiplies the cost. The Manage tab shows the total: Up to N credits/day when running.
- Credits are taken hour by hour, and only while the server is running. A server that stops when idle costs less than its daily maximum.
- Applying a paid setup needs at least one day of its cost in credits.
- If your credits run out, the app is moved back to the default setup. It stays online.
Logs and metrics
Publish → Logs shows the published app's server output, refreshed every few seconds. You can pause it and clear it.
Publish → Metrics charts the last hour, 6 hours or 24 hours: CPU, memory, response time, requests per second with their errors, active connections, network and disk.
While you build, the editor's Backend logs tab shows the same thing for the preview.
If a subscription ends
Publishing, custom domains and code download need a paid plan. When a subscription ends and is not renewed, published sites and apps are taken offline after a grace period of 14 days. Your projects, their code and their databases are kept: subscribe again and publish to bring one back.