Added more config paths (#55)
This commit is contained in:
parent
8362799a93
commit
08cbd18bc5
2 changed files with 11 additions and 1 deletions
|
|
@ -84,8 +84,9 @@ func init() {
|
|||
viper.AutomaticEnv()
|
||||
|
||||
// Load the config file
|
||||
viper.AddConfigPath(exPath)
|
||||
viper.AddConfigPath(viper.GetString("service.rootpath"))
|
||||
viper.AddConfigPath("/etc/vikunja/")
|
||||
viper.AddConfigPath("~/.config/vikunja")
|
||||
viper.AddConfigPath(".")
|
||||
viper.SetConfigName("config")
|
||||
err = viper.ReadInConfig()
|
||||
|
|
|
|||
Reference in a new issue