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

AddressWhat it is
preview--yourproject.capacity.studioThe preview: your work in progress, as you see it in the editor
yourproject.capacity.studioThe 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

  1. 1
    Click Publish
  2. 2
    Confirm
  3. 3
    Wait for the steps to finish

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-tabWhat it holds
OverviewThe address, the app's type and where it is hosted
DetailsThe page title and description, the icon, the social image, the Built with Capacity badge, and whether visitors may remix the app
DomainsCustom domains

What can be published

ProjectPublishing
A websiteYes. 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 oneNot 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 MistralYes, 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 sizeCPUMemoryCredits per day
Shared 1x1 shared256 MBIncluded
Shared 1x1 shared512 MB1
Shared 1x1 shared1 GB2
Shared 2x2 shared2 GB4
Performance 1x1 dedicated2 GB6
Performance 2x2 dedicated4 GB10

Choose a size and click Apply Changes. Changing size restarts the server briefly.

Auto-stop

SettingWhat 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 idleSame, with a faster restart.
Always onThe 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.