Try click.echo() instead

This ensures the URL is output correctly when running under Docker.

Closes #1958
0.63.x
Simon Willison 2022-12-15 16:55:17 -08:00
rodzic d67f812b73
commit 4ba8d57bb1
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -607,7 +607,7 @@ def serve(
url = "http://{}:{}{}?token={}".format( url = "http://{}:{}{}?token={}".format(
host, port, ds.urls.path("-/auth-token"), ds._root_token host, port, ds.urls.path("-/auth-token"), ds._root_token
) )
print(url) click.echo(url)
if open_browser: if open_browser:
if url is None: if url is None:
# Figure out most convenient URL - to table, database or homepage # Figure out most convenient URL - to table, database or homepage