Release Build
wasm-drydock release
This command:
- Runs
wasm-pack build --releaseon the frontend - Compiles
frontend/styles/screen.scsstofrontend/styles/screen.css - Runs
cargo build --release --features embed-assetson the backend
The result is a single self-contained binary in target/release/ with all frontend assets — WASM, JavaScript, CSS, index.html, and public assets — compiled in. The binary has zero runtime filesystem dependencies.
Configuration at runtime
The release binary embeds configuration/base.yaml at compile time. To override settings at runtime without recompiling, place an environment-specific YAML file next to the binary:
my-app-backend ← the binary
configuration/
└── production.yaml ← optional override
APP_* environment variables are always applied last and override everything:
APP_APPLICATION__HOST=0.0.0.0 ./my-app-backend