Skip to content

Commit 5a9a0c0

Browse files
authored
fix: in cocoindex server -L also print URL for CocoInsight (#489)
1 parent 18c579f commit 5a9a0c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/cocoindex/cli.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,12 @@ def server(address: str | None, live_update: bool, quiet: bool, cors_origin: str
212212

213213
lib.start_server(server_settings)
214214

215+
if COCOINDEX_HOST in cors_origins:
216+
click.echo(f"Open CocoInsight at: {COCOINDEX_HOST}/cocoinsight")
217+
215218
if live_update:
216219
options = flow.FlowLiveUpdaterOptions(live_mode=True, print_stats=not quiet)
217220
flow.update_all_flows(options)
218-
if COCOINDEX_HOST in cors_origins:
219-
click.echo(f"Open CocoInsight at: {COCOINDEX_HOST}/cocoinsight")
220221
input("Press Enter to stop...")
221222

222223

0 commit comments

Comments
 (0)