From 8e7ad955f744e9c8aacf902ef3dd283d62aee8f2 Mon Sep 17 00:00:00 2001 From: stroblme Date: Fri, 16 Oct 2026 15:18:11 +0200 Subject: [PATCH] serve names the dashboard's address when the image serves it The banner said nothing was served whenever a portal was configured, which stopped being true once the image carries the dashboard. Co-Authored-By: Claude Opus 5.5 --- backend/fluksio/cli.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/fluksio/cli.py b/backend/fluksio/cli.py index 6656ae5..ac43dd1 100644 --- a/backend/fluksio/cli.py +++ b/backend/fluksio/cli.py @@ -535,6 +535,7 @@ def cmd_serve(args: argparse.Namespace) -> int: import uvicorn + from fluksio.core.config import settings from fluksio.flow import modules from fluksio.main import app @@ -592,6 +593,9 @@ def cmd_serve(args: argparse.Namespace) -> int: config = cloud_config.load() _say(f"Fluksio {fluksio.__version__} — data in {data_dir}") _say(f" API {url}/api/v1") + if settings.FRONTEND_DIST: + # The address people open, which behind a published port is not `url`. + _say(f" Dashboard {settings.FRONTEND_HOST}") # Which environment node code imports from is the thing a data scientist # most needs to know at this moment, and the answer differs depending on # how Fluksio was installed. Saying it costs one line. @@ -606,7 +610,8 @@ def cmd_serve(args: argparse.Namespace) -> int: _say(" a venv of its own; the Modules screen installs into it.") if config is not None: _say(f" Portal {config.portal_url}, instance {config.instance_id}") - _say(" The dashboard is served by the portal; nothing is served here.") + if not settings.FRONTEND_DIST: + _say(" The dashboard is served by the portal; nothing is served here.") else: _say(" No portal. Pair this instance with:") _say(" fluksio enroll ")