7f394fea by astaxie

beego: hot fix for TestBeegoInit can't parsefile

1 parent 5c06cd09
Showing 1 changed file with 5 additions and 0 deletions
......@@ -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()
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!