mirror of https://github.com/beego/bee.git
Enable reload through JSON/YAML configuration files
This commit is contained in:
parent
4ad45b3cd7
commit
24eee99d5b
4
conf.go
4
conf.go
|
@ -45,7 +45,8 @@ var defaultConf = `{
|
|||
"envs": [],
|
||||
"database": {
|
||||
"driver": "mysql"
|
||||
}
|
||||
},
|
||||
"enable_reload": false
|
||||
}
|
||||
`
|
||||
var conf struct {
|
||||
|
@ -75,6 +76,7 @@ var conf struct {
|
|||
Driver string
|
||||
Conn string
|
||||
}
|
||||
EnableReload bool `json:"enable_reload" yaml:"enable_reload"`
|
||||
}
|
||||
|
||||
// loadConfig loads customized configuration.
|
||||
|
|
Loading…
Reference in New Issue