kopia lustrzana https://github.com/simonw/datasette
Try click.echo() instead
This ensures the URL is output correctly when running under Docker. Closes #19580.63.x
rodzic
d67f812b73
commit
4ba8d57bb1
|
@ -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
|
||||||
|
|
Ładowanie…
Reference in New Issue