fix: bind datasette to 0.0.0.0 for remote access

This commit is contained in:
Zeus 2026-02-22 10:57:20 +00:00
parent f73136d83b
commit b8f67ca46c

View file

@ -572,9 +572,9 @@ def cmd_serve(args) -> None:
print(f" Datasette: http://localhost:{datasette_port}")
print()
# Start datasette in background
# Start datasette in background (bind to all interfaces for remote access)
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,
stderr=subprocess.DEVNULL
)