Fix: dockerfile

This commit is contained in:
Grail Finder
2025-07-07 21:27:42 +03:00
parent 723f335f0f
commit 7ed430d8d7
3 changed files with 3 additions and 3 deletions

View File

@ -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"]

View File

@ -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"

View File

@ -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{