From 1ce3d02239e89a99c38bea54256d4d7e7fb8b61b Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Mon, 20 Jul 2026 20:01:27 +0200 Subject: [PATCH] fix(dev): make browser launch opt in --- README.md | 8 ++++++++ dev/postgres/README.md | 6 ++++++ tools/launch/launch-dev.sh | 3 ++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7258947..093a0dd 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,12 @@ Start the development stack through the meta repository: ./tools/launch/launch-dev.sh ``` +Open the WebUI in a browser after launch only when explicitly requested: + +```sh +GOVOPLAN_OPEN_BROWSER=1 ./tools/launch/launch-dev.sh +``` + Start the shared development PostgreSQL service: ```sh @@ -119,6 +125,8 @@ Meta ownership and module install/contract boundaries are documented in `docs/META_REPO_SCAN.md` and `docs/MODULE_CONTRACTS_AND_INSTALLS.md`. Frontend layout principles for module pages are documented in `docs/FRONTEND_LAYOUT_PRINCIPLES.md`. +The first Campaign-centric capability and infrastructure fit assessment is in +`docs/CAPABILITY_AND_INFRASTRUCTURE_FIT.md`. # GovOPlaN Docker diff --git a/dev/postgres/README.md b/dev/postgres/README.md index e06552e..c855e3a 100644 --- a/dev/postgres/README.md +++ b/dev/postgres/README.md @@ -80,6 +80,12 @@ cd /mnt/DATA/git/govoplan tools/launch/launch-dev.sh ``` +The launcher does not open a browser by default. To opt in: + +```bash +GOVOPLAN_OPEN_BROWSER=1 tools/launch/launch-dev.sh +``` + To force the old SQLite fallback for a disposable local run: ```bash diff --git a/tools/launch/launch-dev.sh b/tools/launch/launch-dev.sh index ad2fcaf..735a4f0 100644 --- a/tools/launch/launch-dev.sh +++ b/tools/launch/launch-dev.sh @@ -15,7 +15,7 @@ BACKEND_HOST="${GOVOPLAN_BACKEND_HOST:-127.0.0.1}" BACKEND_PORT="${GOVOPLAN_BACKEND_PORT:-8000}" FRONTEND_HOST="${GOVOPLAN_FRONTEND_HOST:-127.0.0.1}" FRONTEND_PORT="${GOVOPLAN_FRONTEND_PORT:-5173}" -OPEN_BROWSER="${OPEN_BROWSER:-1}" +OPEN_BROWSER="${GOVOPLAN_OPEN_BROWSER:-${OPEN_BROWSER:-0}}" FRONTEND_FORCE_RELOAD="${GOVOPLAN_FRONTEND_FORCE_RELOAD:-1}" FRONTEND_CLEAR_VITE_CACHE="${GOVOPLAN_FRONTEND_CLEAR_VITE_CACHE:-1}" FRONTEND_USE_POLLING="${GOVOPLAN_FRONTEND_USE_POLLING:-1}" @@ -219,6 +219,7 @@ Frontend reload: Vite cache cleared: $FRONTEND_CLEAR_VITE_CACHE Vite --force: $FRONTEND_FORCE_RELOAD Watch polling: $FRONTEND_USE_POLLING (${FRONTEND_POLLING_INTERVAL}ms) +Open browser: $OPEN_BROWSER Press Ctrl+C to stop both processes. EOF