init redis
This commit is contained in:
parent
0676c23c28
commit
4418621fb3
@ -3,6 +3,7 @@ package cmd
|
||||
import (
|
||||
"fmt"
|
||||
"game/server/gate/config"
|
||||
"game/server/gate/model"
|
||||
"game/server/gate/server"
|
||||
"github.com/fox/fox/log"
|
||||
"os"
|
||||
@ -11,19 +12,13 @@ import (
|
||||
)
|
||||
|
||||
func initRepo() {
|
||||
// model.InitUserDB(&config.Config.DBConfig)
|
||||
// model.InitConfigDB(&config.Config.DBConfig)
|
||||
// model.InitRedis(&config.Config.Redis)
|
||||
// model.InitStub()
|
||||
// RobotMgr.Load()
|
||||
// ClubRobotMgr.Load()
|
||||
// //log.Debug(fmt.Sprintf("%+v", stub.GGlobal))
|
||||
model.InitRedis()
|
||||
}
|
||||
|
||||
func Run(version string) {
|
||||
config.LoadConfig()
|
||||
log.Info(fmt.Sprintf("版本信息.%v", version))
|
||||
// initRepo()
|
||||
initRepo()
|
||||
|
||||
server.Init()
|
||||
// 截获 SIGINT 和 SIGTERM 信号
|
||||
|
Loading…
x
Reference in New Issue
Block a user