mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-04 14:50:30 +08:00
Expose go version server and admin server port out of docker in CI (#13572)
### What problem does this PR solve? - Print Go version log when start server - Expose the server port in CI docker container ### Type of change - [x] Other (please describe): For CI Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -337,9 +337,9 @@ func Init(configPath string) error {
|
||||
globalConfig.Admin.Host = "127.0.0.1"
|
||||
}
|
||||
if globalConfig.Admin.Port == 0 {
|
||||
globalConfig.Admin.Port = 9383
|
||||
globalConfig.Admin.Port = 9385
|
||||
} else {
|
||||
globalConfig.Admin.Port += 2
|
||||
globalConfig.Admin.Port += 4
|
||||
}
|
||||
|
||||
// Load REGISTER_ENABLED from environment variable (default: 1)
|
||||
@@ -374,7 +374,7 @@ func Init(configPath string) error {
|
||||
if v.IsSet("ragflow") {
|
||||
ragflowConfig := v.Sub("ragflow")
|
||||
if ragflowConfig != nil {
|
||||
globalConfig.Server.Port = ragflowConfig.GetInt("http_port") + 2 // 9382, by default
|
||||
globalConfig.Server.Port = ragflowConfig.GetInt("http_port") + 4 // 9384, by default
|
||||
//globalConfig.Server.Port = ragflowConfig.GetInt("http_port") // Correct
|
||||
// If mode is not set, default to debug
|
||||
if globalConfig.Server.Mode == "" {
|
||||
|
||||
Reference in New Issue
Block a user