Skip to content

Commit 611b2f3

Browse files
authored
don't need this (#150)
1 parent 947fa84 commit 611b2f3

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

main.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ import (
1818
"gorm.io/gorm"
1919
)
2020

21-
func init() {
22-
23-
if pgUri, exists := os.LookupEnv("POSTGRES_URI"); exists && pgUri != "" {
24-
fmt.Println("WARN: Using POSTGRES_URI environment variable to override DATABASE_URL")
25-
os.Setenv("DATABASE_URL", pgUri)
26-
fmt.Println("Using DATABASE_URL:", os.Getenv("DATABASE_URL"))
27-
}
28-
29-
}
30-
3121
var (
3222
defaultPort int64 = 8080
3323
slackSigningSecretConfigKey = "slackSigningSecret"
@@ -45,7 +35,7 @@ var (
4535
slackCallbackURLConfigKey: os.Getenv("SLACK_CALLBACK_URL"),
4636
legacyCryptoKeyConfigKey: os.Getenv("CRYPTO_KEY"),
4737
appURLConfigKey: os.Getenv("APP_URL"),
48-
databaseURL: os.Getenv("DATABASE_URL"), // if POSTGRES_URI is set, it will override DATABASE_URL
38+
databaseURL: os.Getenv("DATABASE_URL"),
4939
}
5040
)
5141

0 commit comments

Comments
 (0)