mirror of
https://github.com/astaxie/beego.git
synced 2025-02-16 23:07:03 +00:00
fix the issue #3063
This commit is contained in:
parent
37d1c13603
commit
9a7554fa01
@ -138,8 +138,8 @@ func init() {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
var filename = "app.conf"
|
var filename = "app.conf"
|
||||||
if os.Getenv("BEEGO_MODE") != "" {
|
if os.Getenv("BEEGO_RUNMODE") != "" {
|
||||||
filename = os.Getenv("BEEGO_MODE") + ".app.conf"
|
filename = os.Getenv("BEEGO_RUNMODE") + ".app.conf"
|
||||||
}
|
}
|
||||||
appConfigPath = filepath.Join(workPath, "conf", filename)
|
appConfigPath = filepath.Join(workPath, "conf", filename)
|
||||||
if !utils.FileExists(appConfigPath) {
|
if !utils.FileExists(appConfigPath) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user