diff --git a/cmd/root.go b/cmd/root.go index 8d05ec4..d321b54 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -138,8 +138,9 @@ func initConfig() { home, err := os.UserHomeDir() cobra.CheckErr(err) - // Search config in home directory with name ".cobra" (without extension). + // Search config in home directory with name ".postal_server" (without extension). viper.AddConfigPath(home) + viper.AddConfigPath(".") viper.SetConfigType("yaml") viper.SetConfigName(".postal_server") }