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{