read from correct config directory

This commit is contained in:
stryan 2020-10-05 12:28:54 -04:00
parent 53efeb18d4
commit fe54be6217

View File

@ -46,7 +46,7 @@ func validateConfigEntry(entry string, name string) bool {
func LoadConfig() (*Config, error) {
viper.SetConfigName("guildgate")
viper.AddConfigPath("/etc/")
viper.AddConfigPath("/etc/guildgate")
viper.AddConfigPath(".")
err := viper.ReadInConfig()
if err != nil {