1
0
mirror of https://github.com/beego/bee.git synced 2024-11-21 23:50:54 +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.