Skip to content

Commit 017c150

Browse files
committed
Nit
1 parent 441b705 commit 017c150

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

examples/justfile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,7 @@ ipfs-start test_dir: _check-docker
243243
echo " Waiting for IPFS to initialize..."
244244
sleep 5
245245

246-
# Stop daemon to apply config changes before it connects to peers
247-
echo " Stopping daemon to configure..."
248-
docker exec ipfs-node ipfs shutdown || true
249-
sleep 2
250-
251-
# Configure IPFS for isolated mode (no external peer discovery)
246+
# Configure IPFS for isolated mode while daemon is running (config changes take effect on restart)
252247
echo " Configuring isolated mode..."
253248
docker exec ipfs-node ipfs bootstrap rm --all
254249
docker exec ipfs-node ipfs config --json Routing.Type '"none"'
@@ -262,8 +257,8 @@ ipfs-start test_dir: _check-docker
262257
docker exec ipfs-node ipfs config Addresses.API "/ip4/0.0.0.0/tcp/${IPFS_API_PORT}"
263258
docker exec ipfs-node ipfs config Addresses.Gateway "/ip4/0.0.0.0/tcp/${IPFS_GATEWAY_PORT}"
264259

265-
# Restart container to start daemon with clean config
266-
echo " Starting daemon with isolated config..."
260+
# Restart container to apply config changes
261+
echo " Restarting daemon with isolated config..."
267262
docker restart ipfs-node
268263
sleep 5
269264

0 commit comments

Comments
 (0)