aboutsummaryrefslogtreecommitdiff
path: root/cmd/app/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/app/main.go')
-rw-r--r--cmd/app/main.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmd/app/main.go b/cmd/app/main.go
index 4bd77bd..65e8b5a 100644
--- a/cmd/app/main.go
+++ b/cmd/app/main.go
@@ -26,9 +26,10 @@ type ApiConfig struct {
26} 26}
27 27
28type Config struct { 28type Config struct {
29 App AppConfig 29 App AppConfig
30 Api ApiConfig 30 Api ApiConfig
31 Db db.DBConfig 31 Db db.DBConfig
32 Redis db.RedisConfig
32 33
33 utils.LogConfiguration 34 utils.LogConfiguration
34 Address string 35 Address string
@@ -64,7 +65,7 @@ func init() {
64 65
65 api.SetJwtSecretKey(C.Api.JwtSecret) 66 api.SetJwtSecretKey(C.Api.JwtSecret)
66 67
67 db.Init(C.Db) 68 db.Init(C.Db, C.Redis)
68 69
69 if C.Mode == "production" { 70 if C.Mode == "production" {
70 gin.SetMode(gin.ReleaseMode) 71 gin.SetMode(gin.ReleaseMode)