working to fix orangepi db connect
This commit is contained in:
@@ -6,6 +6,7 @@ on:
|
||||
- "*"
|
||||
branches:
|
||||
- main
|
||||
- dev/main
|
||||
|
||||
jobs:
|
||||
webserver:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user