Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(server): use relative SQLite path so dev mode works without root#18

Open
Flo5k5 wants to merge 1 commit into
m5stack:main from
Flo5k5:fix/sqlite-relative-path
Open

fix(server): use relative SQLite path so dev mode works without root #18
Flo5k5 wants to merge 1 commit into
m5stack:main from
Flo5k5:fix/sqlite-relative-path

Conversation

@Flo5k5

@Flo5k5 Flo5k5 commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /