Commit 3504d2a4 authored by Abel's avatar Abel

Add host env feature.

parent 229d8b95
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment