web
This commit is contained in:
@@ -187,6 +187,15 @@ func getConfigName(env string) string {
|
||||
return "config.test"
|
||||
case "production", "prod":
|
||||
return "config.prod"
|
||||
// 生产环境 - 中国区
|
||||
case "prod-cn", "production-cn":
|
||||
return "config.prod-cn"
|
||||
// 生产环境 - 美国区
|
||||
case "prod-us", "production-us":
|
||||
return "config.prod-us"
|
||||
// 生产环境 - 欧洲区
|
||||
case "prod-eu", "production-eu":
|
||||
return "config.prod-eu"
|
||||
default:
|
||||
// 如果环境不匹配,尝试使用默认配置文件
|
||||
if _, err := os.Stat("./configs/config.yaml"); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user