This commit is contained in:
2025-05-10 19:14:37 +01:00
parent 48193284f7
commit f5fe3ff2ce
2 changed files with 2 additions and 2 deletions

View File

@@ -7,4 +7,4 @@ services:
ports:
- "8080:8080"
volumes:
- ./data.sqlite:/app/data.sqlite
- ./data:/app/data

View File

@@ -417,7 +417,7 @@ func handleHTTPRequest(state *state) http.HandlerFunc {
}
func initDB() (*sql.DB, error) {
db, err := sql.Open("sqlite", "file:data.sqlite")
db, err := sql.Open("sqlite", "file:data/data.sqlite")
if err != nil {
log.Fatalln("failed to initialize database")
}