You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow-up from epic #40 / PR #57. `FLAPI_CONFIG` and `FLAPI_LOG_LEVEL`
shipped in v26.05.23; `FLAPI_PORT` and `FLAPI_HOST` were explicitly
deferred to keep the 12-factor scope narrow.
Scope
Wire two more env-var fallbacks in `src/main.cpp` following the same
pattern as `FLAPI_CONFIG` / `FLAPI_LOG_LEVEL`:
`FLAPI_PORT` falls back for `-p` / `--port`. Today port is
CLI-flag-or-config-file only. Must coexist with the existing
`server.http-port` config field (precedence: CLI > env > config > built-in default).
`FLAPI_HOST` falls back for the bind host. There is no CLI flag
for host today; if we want CLI > env semantics we should add a
`--host` flag too.
Follow-up from epic #40 / PR #57. `FLAPI_CONFIG` and `FLAPI_LOG_LEVEL`
shipped in v26.05.23; `FLAPI_PORT` and `FLAPI_HOST` were explicitly
deferred to keep the 12-factor scope narrow.
Scope
Wire two more env-var fallbacks in `src/main.cpp` following the same
pattern as `FLAPI_CONFIG` / `FLAPI_LOG_LEVEL`:
CLI-flag-or-config-file only. Must coexist with the existing
`server.http-port` config field (precedence:
CLI > env > config > built-in default).
for host today; if we want CLI > env semantics we should add a
`--host` flag too.
Acceptance
error, exit 1 (mirrors invalid `FLAPI_LOG_LEVEL` behaviour).
(`FLAPI_PORT` precedence, invalid `FLAPI_PORT` rejected, same for
`FLAPI_HOST`).
checklist + landing-page `docs/tools/server-cli.md` updated.
References