移除 APP_PORT,更新 Docker Compose 配置

This commit is contained in:
2025-04-21 13:57:57 +08:00
parent 91ef0b0ac5
commit 806dca928f
5 changed files with 24 additions and 16 deletions

8
pkg/env/env.go vendored
View File

@@ -13,7 +13,6 @@ import (
var (
AppName = "platform"
AppPort string
)
func loadApp() {
@@ -21,13 +20,6 @@ func loadApp() {
if _AppName != "" {
AppName = _AppName
}
_AppPort := os.Getenv("APP_PORT")
if _AppPort != "" {
AppPort = _AppPort
} else {
panic("环境变量 APP_PORT 的值不能为空")
}
}
// endregion