March Docs

Forge.Release

lib/forge/release.march — forge bastion.release

Builds a self-contained production release in _build/release/<name>/.

Usage: forge bastion.release forge bastion.release --embed-assets # embed static files into binary forge bastion.release --dockerfile # also generate a Dockerfile forge bastion.release --clean # wipe _build/release first

Output layout: _build/release/<name>/ ├── bin/<name> # compiled native binary (release mode) ├── priv/static/ # all static assets (JS, WASM bundles, CSS, images) │ └── islands/ │ ├── manifest.json │ └── *.wasm └── Dockerfile # (if --dockerfile)

When --embed-assets is given the binary embeds all static files; the priv/static/ directory is not included in the release archive.

Environment variables read from .env (if present) at runtime: PORT — HTTP port (default 4000) SECRET_KEY_BASE — HMAC signing key (required in production) DATABASE_URL — Postgres connection string (if using Depot) MARCH_ENV — "production" is set automatically

Functions

fnmainmain()#
fnrunrun(args)#