fix(config): Don't fail on missing env
Some checks failed
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/tag/release Pipeline was successful

This commit is contained in:
Nicolai Ort 2024-12-12 18:18:41 +01:00
parent c9f28612be
commit 1f4981b0a9
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

View File

@ -45,7 +45,7 @@ func loadEnv() error {
viper.AutomaticEnv() viper.AutomaticEnv()
err := viper.ReadInConfig() err := viper.ReadInConfig()
if err != nil { if err != nil {
return err log.Println("No .env file found")
} }
// Unmarshal the config from file and env into the config struct // Unmarshal the config from file and env into the config struct