From eb87c8ce14a9d33dcfb87999267e10eed390c8c3 Mon Sep 17 00:00:00 2001 From: SliverHorn <503551462@qq.com> Date: Fri, 23 Oct 2020 14:05:36 +0800 Subject: [PATCH] update initdb --- server/cmd/gva/initdb.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/cmd/gva/initdb.go b/server/cmd/gva/initdb.go index 101c0fe6..7dcfe7b7 100644 --- a/server/cmd/gva/initdb.go +++ b/server/cmd/gva/initdb.go @@ -39,7 +39,8 @@ var initdbCmd = &cobra.Command{ 4. sqlserver未适配`, Run: func(cmd *cobra.Command, args []string) { path, _ := cmd.Flags().GetString("path") - core.Viper(path) + global.GVA_VP = core.Viper(path) + global.GVA_LOG = core.Zap() // 初始化zap日志库 db := initialize.GormMysql() switch global.GVA_CONFIG.System.DbType { case "mysql":