We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2baf392 commit 0d8edbbCopy full SHA for 0d8edbb
server/cmd/gva/initdb.go
@@ -39,7 +39,8 @@ var initdbCmd = &cobra.Command{
39
4. sqlserver未适配`,
40
Run: func(cmd *cobra.Command, args []string) {
41
path, _ := cmd.Flags().GetString("path")
42
- core.Viper(path)
+ global.GVA_VP = core.Viper(path)
43
+ global.GVA_LOG = core.Zap() // 初始化zap日志库
44
db := initialize.GormMysql()
45
switch global.GVA_CONFIG.System.DbType {
46
case "mysql":
0 commit comments