From 8f2cf27018ab040766c3b024230fb554afd19b5a Mon Sep 17 00:00:00 2001 From: Nourrisse Florian Date: Wed, 22 Apr 2026 15:00:39 +0200 Subject: [PATCH] fix(server): use relative SQLite path so dev mode works without root The config.yaml shipped in the repo points the SQLite link at /stackChan.sqlite (filesystem root). That works in the provided Alpine Dockerfile, which sets WORKDIR=/app and runs as root, but it prevents any non-root developer from starting ./StackChan locally: GoFrame fails to open the DB file on boot because / is not writable. Switching to ./stackChan.sqlite resolves to WORKDIR in both situations (local go run / go build and the Docker container), so the stock command "go build && ./StackChan" finally works out of the box. --- server/manifest/config/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/manifest/config/config.yaml b/server/manifest/config/config.yaml index 41ab5d8..21274d1 100644 --- a/server/manifest/config/config.yaml +++ b/server/manifest/config/config.yaml @@ -12,4 +12,4 @@ logger: # https://goframe.org/docs/core/gdb-config-file database: default: - link: "sqlite::@file(/stackChan.sqlite)" \ No newline at end of file + link: "sqlite::@file(./stackChan.sqlite)" \ No newline at end of file