[object Object]

← back to Dw Domain Fleet

fleet-heroes: open DW fleet registry viewer (:9774) on launch (FLEET_HEROES_NO_OPEN to suppress)

6c986eac9a1124be361843f1d9c44f461e631d2e · 2026-06-01 14:24:17 -0700 · Steve Abrams

Files touched

Diff

commit 6c986eac9a1124be361843f1d9c44f461e631d2e
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon Jun 1 14:24:17 2026 -0700

    fleet-heroes: open DW fleet registry viewer (:9774) on launch (FLEET_HEROES_NO_OPEN to suppress)
---
 scripts/fleet-heroes.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/scripts/fleet-heroes.sh b/scripts/fleet-heroes.sh
index 095eed2..246fa2e 100755
--- a/scripts/fleet-heroes.sh
+++ b/scripts/fleet-heroes.sh
@@ -37,6 +37,13 @@ cd "$ROOT"
 mode=$([ "$DEPLOY" = 1 ] && echo "DEPLOY" || echo "REPORT-ONLY")
 echo "════════ fleet-heroes ($mode) ════════"
 
+# Open the DW Fleet registry viewer when launched (macOS interactive only).
+if command -v open >/dev/null 2>&1 && [ -z "${FLEET_HEROES_NO_OPEN:-}" ]; then
+  curl -s -o /dev/null --max-time 3 http://localhost:9774/ 2>/dev/null \
+    || ( cd "$HOME/Projects/dw-fleet-registry" && nohup node viewer/server.mjs >/tmp/dw-fleet-registry.log 2>&1 & disown )
+  open "http://localhost:9774/" 2>/dev/null && echo "==> opened fleet registry → http://localhost:9774/"
+fi
+
 # ---------- 0. optional catalog refresh ----------
 if [ "$PULL" = 1 ]; then
   echo "==> pulling fresh catalog"; node scripts/pull-catalog.js || { echo "catalog pull failed"; exit 1; }

← addb71d Add fleet-heroes.sh driver: repeatable fleet-wide hero refre  ·  back to Dw Domain Fleet  ·  fleet-heroes: fix spurious exit-1 in deploy mode + dedup by 251f908 →