Skip to content

Commit

Permalink
feat: update config file
Browse files Browse the repository at this point in the history
  • Loading branch information
nurcahyaari committed Jan 4, 2022
1 parent 31c47af commit 6654a74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.env
.env-*
.env.yaml
*.env
*.yaml

build/
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type Config struct {
}

func Get() Config {
viper.SetConfigFile("config.yaml")
viper.AddConfigPath(".")
viper.AutomaticEnv()
err := viper.ReadInConfig()
if err != nil {
Expand Down

0 comments on commit 6654a74

Please sign in to comment.