mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-04-28 14:29:19 +08:00
config path
This commit is contained in:
+6
-1
@@ -18,8 +18,9 @@ func main() {
|
||||
router := api.NewGinRouter()
|
||||
go third.MinioInit()
|
||||
ginPort := flag.Int("port", config.Config.Api.GinPort[0], "get ginServerPort from cmd,default 10002 as port")
|
||||
configPath := flag.String("config_path", "../config/", "config folder")
|
||||
flag.Parse()
|
||||
config.InitConfig()
|
||||
config.InitConfig(*configPath)
|
||||
address := "0.0.0.0:" + strconv.Itoa(*ginPort)
|
||||
if config.Config.Api.ListenIP != "" {
|
||||
address = config.Config.Api.ListenIP + ":" + strconv.Itoa(*ginPort)
|
||||
@@ -31,3 +32,7 @@ func main() {
|
||||
panic("api start failed " + err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
func T() {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user