From 6654a748b4d1e6600ba29b6e857e8d7cd91c71e6 Mon Sep 17 00:00:00 2001 From: Ari Nurcahya Date: Tue, 4 Jan 2022 21:30:38 +0700 Subject: [PATCH] feat: update config file --- .gitignore | 1 + config/config.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index cabdaf6..48011bb 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .env .env-* .env.yaml +*.env *.yaml build/ diff --git a/config/config.go b/config/config.go index 56d8fed..dd1dd69 100644 --- a/config/config.go +++ b/config/config.go @@ -55,7 +55,7 @@ type Config struct { } func Get() Config { - viper.SetConfigFile("config.yaml") + viper.AddConfigPath(".") viper.AutomaticEnv() err := viper.ReadInConfig() if err != nil {