From d40cb11d540f52e79669e4df8db7451b2a0dd9a7 Mon Sep 17 00:00:00 2001 From: Michiel de Jong Date: Wed, 15 May 2024 15:40:28 +0200 Subject: [PATCH] Use the directory that was created Great project, thank you for this! One thing I noticed: https://earthstar-project.org/tutorials/run-a-server contains instructions to "Create a new directory and name it `.share_data` (starting with a dot)." But then the code uses `"./data"` for what seems to be storing share data, right? Was this by mistake? If so, here's a PR! :) --- docs/tutorials/run-a-server.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/run-a-server.mdx b/docs/tutorials/run-a-server.mdx index 5854b85..da4b107 100644 --- a/docs/tutorials/run-a-server.mdx +++ b/docs/tutorials/run-a-server.mdx @@ -71,7 +71,7 @@ new Earthstar.Server([ console.log(`Creating replica for ${address}...`); return new Earthstar.Replica({ - driver: new Earthstar.ReplicaDriverFs(address, "./data"), + driver: new Earthstar.ReplicaDriverFs(address, "./.share_data"), }); }, }), @@ -111,7 +111,7 @@ new Earthstar.Server([ console.log(`Creating replica for ${address}...`); return new Earthstar.Replica({ - driver: new Earthstar.ReplicaDriverFs(address, "./data"), + driver: new Earthstar.ReplicaDriverFs(address, "./.share_data"), }); }, }),