serve names the dashboard's address when the image serves it
Docs / docs (push) Successful in 25s
Playwright Tests / test-playwright (1, 2) (push) Failing after 4m8s
Playwright Tests / test-playwright (2, 2) (push) Successful in 2m41s
pre-commit / pre-commit (push) Failing after 2m33s
Test Backend / test-backend (3.12) (push) Successful in 4m53s
Test Backend / test-backend (3.14) (push) Successful in 4m30s
Compose Smoke Test / test-compose (push) Successful in 37s
Playwright Tests / merge-reports (push) Canceled after 0s

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 <noreply@anthropic.com>
This commit is contained in:
2026-10-16 15:18:11 +02:00
co-authored by Claude Opus 5.5
parent 01495aed25
commit 8e7ad955f7
+6 -1
View File
@@ -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 <code>")