From 7ed430d8d7ed5db61664764cd211eaa9c04497f8 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Mon, 7 Jul 2025 21:27:42 +0300 Subject: [PATCH] Fix: dockerfile --- Dockerfile | 2 +- config.example.toml | 2 +- repos/main.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8493ea7..9f94850 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ COPY --from=builder /gralias /app/gralias # copy assets and templates COPY assets ./assets COPY components ./components -COPY config.example.toml ./config.toml +COPY config.toml ./config.toml COPY migrations ./migrations EXPOSE 3000 CMD ["/app/gralias"] diff --git a/config.example.toml b/config.example.toml index 99cb8e7..197617b 100644 --- a/config.example.toml +++ b/config.example.toml @@ -1,7 +1,7 @@ BASE_URL = "https://localhost:3000" SESSION_LIFETIME_SECONDS = 30000 COOKIE_SECRET = "test" -DB_PATH = "sqlite3://gralias.db" +DB_PATH = "gralias.db" [SERVICE] HOST = "localhost" diff --git a/repos/main.go b/repos/main.go index fbbbf30..1483daf 100644 --- a/repos/main.go +++ b/repos/main.go @@ -44,7 +44,7 @@ func init() { func NewRepoProvider(pathToDB string) AllRepos { db, err := sqlx.Connect("sqlite3", pathToDB) if err != nil { - slog.Error("Unable to connect to database", "error", err) + slog.Error("Unable to connect to database", "error", err, "pathToDB", pathToDB) os.Exit(1) } stmts := []string{