1
0
mirror of https://github.com/astaxie/beego.git synced 2025-08-08 15:27:05 +00:00

Merge pull request #3064 from takeo-lvgs/dev

fix the issue #3063
This commit is contained in:
astaxie
2018-02-22 17:22:39 +08:00
committed by GitHub

View File

@@ -138,8 +138,8 @@ func init() {
panic(err)
}
var filename = "app.conf"
if os.Getenv("BEEGO_MODE") != "" {
filename = os.Getenv("BEEGO_MODE") + ".app.conf"
if os.Getenv("BEEGO_RUNMODE") != "" {
filename = os.Getenv("BEEGO_RUNMODE") + ".app.conf"
}
appConfigPath = filepath.Join(workPath, "conf", filename)
if !utils.FileExists(appConfigPath) {