File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff 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-
3121var (
3222 defaultPort int64 = 8080
3323 slackSigningSecretConfigKey = "slackSigningSecret"
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
You can’t perform that action at this time.
0 commit comments