mirror of
https://github.com/astaxie/beego.git
synced 2025-09-16 00:22:10 +00:00
fix go run hello.go & console log
This commit is contained in:
2
beego.go
2
beego.go
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user