From be98920271e9f1a8becb1dbf91be721380a81bb3 Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Wed, 24 Jul 2024 01:09:58 -0400 Subject: Update environment variable names in config and docker-compose --- config/config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config') diff --git a/config/config.go b/config/config.go index b38e808..52ed1db 100644 --- a/config/config.go +++ b/config/config.go @@ -102,17 +102,17 @@ func configEnvironmentOverrides(Config *Config) { func LoadConfig() *Config { // set the config name based on the environment: - if os.Getenv("CA_ENV") == "local" { + if os.Getenv("DT_ENV") == "local" { viper.SetConfigName("local") - } else if os.Getenv("CA_ENV") == "prod" { + } else if os.Getenv("DT_ENV") == "prod" { viper.SetConfigName("prod") - } else if os.Getenv("CA_ENV") == "selfhosted" { + } else if os.Getenv("DT_ENV") == "selfhosted" { viper.SetConfigName("selfhosted") } else { viper.SetConfigName("local") } // get logger and log the current environment: - fmt.Printf("--ConfigLoad config for environment: %s ", os.Getenv("CA_ENV")) + fmt.Printf("--ConfigLoad config for environment: %s ", os.Getenv("DT_ENV")) viper.AddConfigPath("./config") viper.SetConfigType("yaml") -- cgit