working to fix orangepi db connect
Some checks failed
Tests / Run Go Tests (push) Failing after 30s
Arbeitszeitmessung Deploy / Build Webserver (push) Successful in 2m11s

This commit is contained in:
2026-01-18 21:34:11 +01:00
parent 3f49da49b6
commit 8dc8c4eed3
2 changed files with 2 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ on:
- "*"
branches:
- main
- dev/main
jobs:
webserver:

View File

@@ -31,7 +31,7 @@ func Migrate() error {
dbPassword := helper.GetEnv("POSTGRES_PASSWORD", "password")
dbTz := helper.GetEnv("TZ", "Europe/Berlin")
connStr := fmt.Sprintf("postgres://%s:%s@%s:5432/%s?sslmode=disable&TimeZone=%s", "migrate", dbPassword, dbHost, dbName, dbTz)
connStr := fmt.Sprintf("postgres://migrate:%s@%s:5432/%s?sslmode=disable&TimeZone=%s", dbPassword, dbHost, dbName, dbTz)
m, err := migrate.New("file:///migrations", connStr)
if err != nil {
return err