This website works better with JavaScript.
Home
Explore
Help
Sign In
EggPlanet
/
egg_admin
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
update
master
dengbiao
6 days ago
parent
5fab3eff96
commit
a30a94792e
2 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
app/cfg/init_task.go
+2
-0
cmd/task/main.go
+ 2
- 0
app/cfg/init_task.go
View File
@@ -30,6 +30,8 @@ func InitTaskCfg() {
IMDB = &conf.ImDB
Log = &conf.Log
RedisAddr = conf.RedisAddr
MQ = &conf.MQ
ES = &conf.ES
}
var MemCache mc.Cache
+ 2
- 0
cmd/task/main.go
View File
@@ -20,6 +20,8 @@ func init() {
cfg.InitLog()
// 初始化redis
cfg.InitCache()
cfg.InitMq() // 队列初始化
cfg.InitEs() //ElasticSearch初始化
baseDb := *cfg.DB
baseDb.Path = fmt.Sprintf(cfg.DB.Path, cfg.DB.Name)
if err := db.InitDB(&baseDb); err != nil {
Write
Preview
Loading…
Cancel
Save