From e700e1d3cf830c7e128aaaf4cbed87ad9995b681 Mon Sep 17 00:00:00 2001 From: Anders Olsson Date: Sat, 6 Jun 2026 14:30:41 +0200 Subject: [PATCH] chore: add 'just run-release' (build web + run server with embed-web) Co-Authored-By: Claude Opus 4.8 (1M context) --- justfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/justfile b/justfile index 951d8b5..7420bed 100644 --- a/justfile +++ b/justfile @@ -4,6 +4,12 @@ set dotenv-load run: cargo run -p server +# Build the web SPA + run the server in release mode with the SPA embedded (served at /) +run-release: + # build.rs embeds web/dist, so the frontend must be built first + cd web && pnpm build + cargo run -p server --release --features embed-web + # Seed the baseline Spectrum cataloguing vocabularies + field definitions (idempotent) seed: cargo run -p server -- seed