|
@@ -35,13 +35,14 @@ func init() {
|
|
|
RunMode = tmpRunMode
|
|
|
fmt.Println("RunMode:", RunMode)
|
|
|
if RunMode == "" {
|
|
|
- RunMode = "debug"
|
|
|
configPath := `/home/code/config/eta_mini_crm/conf/app.conf`
|
|
|
fmt.Println("configPath:", configPath)
|
|
|
err = web.LoadAppConfig("ini", configPath)
|
|
|
if err != nil {
|
|
|
fmt.Println("web.LoadAppConfig Err:" + err.Error())
|
|
|
}
|
|
|
+ tmpRunMode, _ := web.AppConfig.String("run_mode")
|
|
|
+ RunMode = tmpRunMode
|
|
|
}
|
|
|
|
|
|
config, err := web.AppConfig.GetSection(RunMode)
|