1
0
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:
astaxie 2014-11-06 11:12:00 +08:00
parent 54ba307f7f
commit bb795847da

View File

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