server

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 43 Imported by: 0

Documentation

Overview

Command server runs the go-ledger HTTP API.

Interactive first-run Postgres setup (ADR-019, "Interactive first-run setup for the binary"). Strictly TTY-gated: this code path only ever runs when DATABASE_URL is unset AND stdin is a terminal (see isInteractive and loadConfigWithTTY in main.go). Every other environment, docker, systemd, CI, or a plain "go run" with input piped in, keeps today's fail-fast behavior unchanged.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL