Fix loading config from given path
This commit is contained in:
parent
7eb4d67f95
commit
234929e5ed
1 changed files with 3 additions and 3 deletions
|
@ -24,11 +24,11 @@ func Load(workingDir, configFile string) (cfg *Components, err error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else {
|
} else {
|
||||||
loader.AddConfigPath(home)
|
loader.AddConfigPath(home)
|
||||||
|
loader.AddConfigPath(workingDir)
|
||||||
|
loader.SetConfigName("goveal")
|
||||||
|
loader.SetConfigType("yaml")
|
||||||
}
|
}
|
||||||
|
|
||||||
loader.AddConfigPath(workingDir)
|
|
||||||
loader.SetConfigName("goveal")
|
|
||||||
loader.SetConfigType("yaml")
|
|
||||||
loader.AutomaticEnv()
|
loader.AutomaticEnv()
|
||||||
|
|
||||||
if err = loader.ReadInConfig(); err == nil {
|
if err = loader.ReadInConfig(); err == nil {
|
||||||
|
|
Loading…
Reference in a new issue