mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 12:11:28 +00:00
fix the not exist config file application
This commit is contained in:
parent
54ba307f7f
commit
bb795847da
@ -277,7 +277,7 @@ func init() {
|
|||||||
SetLogFuncCall(true)
|
SetLogFuncCall(true)
|
||||||
|
|
||||||
err = ParseConfig()
|
err = ParseConfig()
|
||||||
if err != nil && !os.IsNotExist(err) {
|
if err != nil && os.IsNotExist(err) {
|
||||||
// for init if doesn't have app.conf will not panic
|
// for init if doesn't have app.conf will not panic
|
||||||
ac := config.NewFakeConfig()
|
ac := config.NewFakeConfig()
|
||||||
AppConfig = &beegoAppConfig{ac}
|
AppConfig = &beegoAppConfig{ac}
|
||||||
|
Loading…
Reference in New Issue
Block a user