fix: bind datasette to 0.0.0.0 for remote access
This commit is contained in:
parent
f73136d83b
commit
b8f67ca46c
1 changed files with 2 additions and 2 deletions
|
|
@ -572,9 +572,9 @@ def cmd_serve(args) -> None:
|
||||||
print(f" Datasette: http://localhost:{datasette_port}")
|
print(f" Datasette: http://localhost:{datasette_port}")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
# Start datasette in background
|
# Start datasette in background (bind to all interfaces for remote access)
|
||||||
datasette_proc = subprocess.Popen(
|
datasette_proc = subprocess.Popen(
|
||||||
["datasette", str(db_path), "-p", str(datasette_port), "--cors"],
|
["datasette", str(db_path), "-h", "0.0.0.0", "-p", str(datasette_port), "--cors"],
|
||||||
stdout=subprocess.DEVNULL,
|
stdout=subprocess.DEVNULL,
|
||||||
stderr=subprocess.DEVNULL
|
stderr=subprocess.DEVNULL
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue