Recent searches

in

What is a Site build?

Last modified: November 26th, 2026

On this page

Permissions required

Members of the Owners, Developers, Technical Editors, and Partner Default Permission Groups, or Custom Permission Groups with the site:build:trigger:write permission, can start a Site build.

A build is when CloudCannon converts all your Site files into a single, functional website. By building your Site in CloudCannon, you can make the most of features such as:

What happens during a build?#

CloudCannon uses a CI/CD (Continuous Integration/Continuous Delivery) system. Every time you trigger a build of your Site, CloudCannon will:

  1. Download your files onto our server.
  2. Run your selected install commands (e.g., npm install, bundle install⁠).
  3. Run your selected build commands (e.g., npm run build⁠).
  4. Index your output files.
  5. Upload your output files to CloudCannon to generate previews (the Testing Domain, the Visual Editor, and screenshots in CloudCannon) and deliver them to your live domain (if you are hosting with CloudCannon).

Additionally, you can configure build hooks to run extra commands during your Site build. Build hooks are useful for downloading external data, running test commands, and more.

CloudCannon runs your build commands using bash in an isolated environment powered by Ubuntu. In addition to bash, CloudCannon includes several other programs and libraries your Site may need, such as Deno, Go, Node.js, and Ruby. You can pin a version of these dependencies to maintain consistency between builds.

If your build needs a program, or a version of a program, that the build environment does not include, contact our support team with your Site name and the program and version you need.

Starting a build#

Setting up your first Site build requires some configuration. For more information, please read our documentation on configuring your first build. Once you have completed your first build you can trigger subsequent builds at any time.

You can start a build by:

You can prevent a Site from building by locking builds.

Reading your build output logs#

CloudCannon produces a log every time it runs a build. You can use your build log to follow CloudCannon's build process and diagnose your build if CloudCannon runs into an error.

While CloudCannon is building your Site, you can read the build output by clicking the View Output button in the notification at the bottom right of the app. This will open the Build Output modal.

A screenshot of the Content Editor with the Building notification in the bottom right shows a button labeled View Output.
The Building notification
A screenshot of the Content Editor with the Build Output modal open shows the progress of the current Site build.
The Build Output modal

The Build Output modal has a Copy button and a Timings checkbox. The Copy button copies your build log as plain text. The Timings checkbox shows when each event in the log happened, and CloudCannon remembers your choice for later builds. If you scroll up the log, a Latest logs button appears, which takes you back to the newest lines.

You can view all your build logs on the Builds tab of your Site Dashboard.

A screenshot of the Site Dashboard Builds tab shows that the first build of a Site is running.
The Site Dashboard Builds tab

When your Site has Preserved Paths set, your build log also shows whether CloudCannon restored your preserved paths before the build and saved them afterward. For what each of these lines means, please read our documentation on preserved paths in your build log.

Caching between builds#

To improve the speed of your builds, CloudCannon can reuse cached files from a Site's previous build, whichever server runs the next build. You can configure CloudCannon to keep files between builds, so later builds can skip work that earlier builds have already done.

Caching helps most with build steps that are typically slow, such as image optimization, installing dependencies, and external data fetching. For more information, please read our documentation on configuring caching between builds.

Related Resources

Open in a new tab