Commit 8cbea70e authored by astaxie's avatar astaxie

beego: hot fix for TestBeegoInit can't parsefile

parent f222f5b2
......@@ -238,6 +238,11 @@ func initBeforeHttpRun() {
func TestBeegoInit(apppath string) {
AppPath = apppath
AppConfigPath = filepath.Join(AppPath, "conf", "app.conf")
err := ParseConfig()
if err != nil && !os.IsNotExist(err) {
// for init if doesn't have app.conf will not panic
Info(err)
}
os.Chdir(AppPath)
initBeforeHttpRun()
}
......
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