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