From 6e820aaae737c89e24b94607b2fc510e824a209b Mon Sep 17 00:00:00 2001 From: John Andersen Date: Sun, 13 Jul 2025 15:03:17 +0000 Subject: [PATCH] docs: spindle: hosting: create log directory Fixes error: ``` time=2025-07-13T15:01:04.268Z level=WARN msg="failed to setup step logger; logs will not be persisted" component=spindle error="creating log file: open /var/log/spindle/knot1.tangled.sh-3ltu5bpvgwt22-fix-todos.yaml.log: no such file or directory" ``` Signed-off-by: John Andersen --- docs/spindle/hosting.md | 9 ++++++++- 1 file(s) changed, 8 insertion(s)(+), 1 deletion(s)(-) diff --git a/docs/spindle/hosting.md b/docs/spindle/hosting.md --- a/docs/spindle/hosting.md +++ b/docs/spindle/hosting.md @@ -36,7 +36,14 @@ go build -o cmd/spindle/spindle cmd/spindle/main.go ``` -3. **Run the Spindle binary.** +3. **Create the log directory.** + + ```shell + sudo mkdir -p /var/log/spindle + sudo chown $USER:$USER -R /var/log/spindle + ``` + +4. **Run the Spindle binary.** ```shell ./cmd/spindle/spindle -- tangled.sh