mirror of
https://github.com/astaxie/beego.git
synced 2024-12-23 06:20:50 +00:00
Add host env feature.
This commit is contained in:
parent
229d8b9530
commit
3504d2a4da
@ -134,10 +134,10 @@ func init() {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
var filename = "app.conf"
|
||||
if os.Getenv("BEEGO_MODE") !=""{
|
||||
filename= os.Getenv("BEEGO_MODE")+".app.conf"
|
||||
}
|
||||
var filename = "app.conf"
|
||||
if os.Getenv("BEEGO_MODE") != "" {
|
||||
filename = os.Getenv("BEEGO_MODE") + ".app.conf"
|
||||
}
|
||||
appConfigPath = filepath.Join(workPath, "conf", filename)
|
||||
if !utils.FileExists(appConfigPath) {
|
||||
appConfigPath = filepath.Join(AppPath, "conf", filename)
|
||||
|
Loading…
Reference in New Issue
Block a user