mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
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": [],
|
"envs": [],
|
||||||
"database": {
|
"database": {
|
||||||
"driver": "mysql"
|
"driver": "mysql"
|
||||||
}
|
},
|
||||||
|
"enable_reload": false
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
var conf struct {
|
var conf struct {
|
||||||
@ -75,6 +76,7 @@ var conf struct {
|
|||||||
Driver string
|
Driver string
|
||||||
Conn string
|
Conn string
|
||||||
}
|
}
|
||||||
|
EnableReload bool `json:"enable_reload" yaml:"enable_reload"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// loadConfig loads customized configuration.
|
// loadConfig loads customized configuration.
|
||||||
|
Loading…
Reference in New Issue
Block a user