irongit

axum + Astro, shipped as one binary. Static pages served from disk in dev, embedded in the executable in release.

astrum/dev.sh
14 lines462 BBourne Again Shell (bash)
1#!/bin/sh
2# Development server. Installs frontend dependencies if needed (rust-embed
3# needs frontend/dist to exist before the server will compile), then restarts
4# the server on Rust changes. The server itself rebuilds the frontend and
5# reloads open browsers.
6set -e
7
8cd "$(dirname "$0")"
9
10[ -d frontend/node_modules ] || (cd frontend && bun install)
11[ -d frontend/dist ] || (cd frontend && bun run build)
12
13cd backend
14exec watchexec -r -e rs,toml -- cargo run