Commit bb795847 authored by astaxie's avatar astaxie

fix the not exist config file application

parent 54ba307f
...@@ -277,7 +277,7 @@ func init() { ...@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment