Skip to content

Setting up ​

This is the one-time setup a developer (or you, following their instructions) does before there is anything to edit in the page builder. Everything lives under Content → Theme, on the Theme and source tab.

1. Create the site ​

If your organisation has no site yet, Theme and source shows a No site yet card. There you choose how your theme reaches Eldra:

  • Deploy from GitHub: press Connect to GitHub, choose a repository and a branch, then press Create site. Eldra builds the site from that repository itself.
  • Deploy with the CLI: enter a Site name and press Create site. Your developer then deploys the theme from their own pipeline.

Creating the site gives your organisation a place to receive theme deploys and a storefront address. To create another website later, go to Content → Websites and press New website.

If your site is built from a GitHub repository, Eldra does the building and steps 2 and 3 do not apply: Theme and source shows a Repository card instead.

2. Generate a deploy token ​

Your theme's deploy tool (eldra-theme deploy) authenticates with a token you create on the Deploy token card of the Theme and source tab. Press Create token and copy it immediately — Studio shows it to you exactly once and never displays it again. Store it as your CI provider's ELDRA_DEPLOY_TOKEN secret (GitHub Actions, GitLab CI and Bitbucket snippets are on the CI setup card, ready to paste). If a token is ever exposed, Rotate token invalidates the old one immediately — update the CI secret at the same time, or the next deploy fails.

Eldra only ever receives the static files your theme's build produces; your theme's own code never runs on Eldra's servers.

3. Point your CI at Eldra so publishing triggers a rebuild ​

Publishing a page in Studio does not rebuild your site by itself — Studio asks your CI to do it. On the Rebuild on publish card of the same tab, set a CI trigger URL (and, if your CI needs one, a token or signing secret). Once that is set, publishing content, saving design-token overrides, or saving theme texts all queue a rebuild through that trigger automatically. Without it, your changes save correctly in Studio but never reach the live site until someone deploys the theme by hand — Studio tells you this plainly ("Set a CI trigger URL first. Eldra asks your CI to rebuild; it does not build themes itself.") if you try to rebuild without one configured.

4. The first theme deploy ​

The first time your theme is deployed (eldra-theme deploy), two things happen that you will see reflected in Studio:

  • Your blocks — the content types your theme defines (hero sections, product grids, text blocks, and so on) — become available on the Blocks tab of the builder's rail.
  • A small set of theme pages (see Concepts) are created automatically if they do not already exist — typically your home page, and pages for cart, wishlist and search. In Content → Pages they carry an icon whose tooltip reads "Provided by your theme". In the builder they are on the Pages tab under Theme pages & templates, separate from the pages you create yourself.

Every deploy after the first updates your block catalogue and keeps your content: nothing you have written is touched by a theme deploy.

5. Watch deployments ​

The Deployments tab under Content → Theme lists every deploy and rebuild, newest first, with its status and what triggered it. If a deploy fails, this is where you see why and can start a Rebuild; see Troubleshooting for what the messages mean.

Once a site exists (and, for a site you deploy yourself, a deploy token is created and a CI trigger is configured), you are ready to build pages — continue to Building a page.

Eldra