1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-04 09:10:18 +00:00

fix go run hello.go & console log

This commit is contained in:
astaxie
2014-04-04 09:49:55 +08:00
parent 31de651053
commit fc982feeb9
5 changed files with 7 additions and 12 deletions

View File

@ -188,7 +188,7 @@ func initBeforeHttpRun() {
// if AppConfigPath not In the conf/app.conf reParse config
if AppConfigPath != filepath.Join(AppPath, "conf", "app.conf") {
err := ParseConfig()
if err != nil {
if err != nil && AppConfigPath != filepath.Join(workPath, "conf", "app.conf") {
// configuration is critical to app, panic here if parse failed
panic(err)
}