mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Try click.echo() instead
This ensures the URL is output correctly when running under Docker. Closes #1958
This commit is contained in:
parent
d67f812b73
commit
4ba8d57bb1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue