1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 15:10:49 +00:00

Enable reload through JSON/YAML configuration files

This commit is contained in:
Faissal Elamraoui 2017-01-22 22:24:52 +01:00
parent 4ad45b3cd7
commit 24eee99d5b

View File

@ -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.