mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-05 01:25:58 +08:00
config modify
This commit is contained in:
+3
-4
@@ -11,14 +11,13 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
if err := config.InitConfig(); err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
defaultPorts := config.Config.RpcPort.OpenImPushPort
|
||||
rpcPort := flag.Int("port", defaultPorts[0], "rpc listening port")
|
||||
prometheusPort := flag.Int("prometheus_port", config.Config.Prometheus.MessageTransferPrometheusPort[0], "PushrometheusPort default listen port")
|
||||
configPath := flag.String("config_path", "../config/", "config folder")
|
||||
flag.Parse()
|
||||
if err := config.InitConfig(*configPath); err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
var wg sync.WaitGroup
|
||||
wg.Add(1)
|
||||
log.NewPrivateLog(constant.LogFileName)
|
||||
|
||||
Reference in New Issue
Block a user