Rock8Cloud
Blueprints

EmDash Marketing Site - Blueprint

Content-managed marketing site on EmDash and Astro with PostgreSQL and S3 media

A marketing site built with EmDash, the Astro-native CMS, and Astro, server-rendered on Bun. Every page is assembled from editable blocks in the EmDash admin. Publishing makes a change live immediately, there is no rebuild.

Tech stack:

LayerTechnology
CMSEmDash, admin at /_emdash/admin with passkey login
SiteAstro, server-rendered via @astrojs/node on Bun, port 4321
DatabasePostgreSQL via DATABASE_URL
MediaS3-compatible object storage

Block types: hero, features, testimonials, pricing and FAQ. The demo content is for Acme, a fictional product. Replace it in the admin.

View on GitHub →

What You Get

  • A private clone of the repository in your GitHub account
  • A Rock8Cloud service running the site and the EmDash admin
  • A managed PostgreSQL database, pre-wired via DATABASE_URL
  • A managed S3 bucket for media, pre-wired via the S3_* variables
  • EMDASH_SITE_URL set to the service URL

First Setup

Run the setup wizard right after the first deploy finishes:

  1. Open <your URL>/_emdash/admin
  2. Enter the site title, keep sample content enabled, and enter your email
  3. Register a passkey

The wizard applies the seed, so the home, pricing and contact pages are populated immediately. Until the wizard is done, whoever opens the admin first becomes its owner, so do not leave it pending.


Passkeys and Custom Domains

Passkeys are bound to the domain in EMDASH_SITE_URL. When you add a custom domain, set EMDASH_SITE_URL to it and register a new passkey on that domain.

Encryption Key

EMDASH_ENCRYPTION_KEY encrypts plugin secrets stored in the database. It is not set on deploy, and the site runs without it. Before adding a plugin with secret settings, generate one with bunx emdash secrets generate and add it as an environment variable. Back it up together with the database. Losing it loses those secrets.

Media Uploads

Uploads go to the provisioned bucket and are served through the app at /_emdash/api/media/file/..., so the bucket stays private. See S3 Storage.

Login sessions are stored on the container disk, so a redeploy signs editors out.


Customizing

  • Edit pages, menus and settings in the admin, no code needed
  • New block types go in seed/seed.json and src/components/blocks/
  • Restyle by overriding design tokens in src/styles/theme.css

The service builds from the Dockerfile at the repository root.


On this page