liuxiaolong
2020-06-05 7c811247ecf143e08c576986a884bedadc57dd66
extend/config/config.go
@@ -11,6 +11,7 @@
   Color string `mapstructure: "color"`
}
type server struct {
    ServerName     string `mapstructure: "serverName"`
   Runmode        string `mapstructure: "runmode"`
   JwtSecret      string `mapstructure: "jwtSecret"`
   JwtExpire      string `mapstructure: "jwtExpire"`
@@ -92,7 +93,7 @@
   var err error
   viper.SetConfigType("yaml")
   viper.SetConfigName(env)
   viper.AddConfigPath("/opt/vasystem/config/")
   viper.AddConfigPath("../config/")
   err = viper.ReadInConfig()
   if err != nil {
      log.Fatal("error on parsing configuration file", err)