Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions conf/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ release = false

[mysql]
user = root
password = root1234
password = wf196812
host = 127.0.0.1
port = 23306
port = 3306
db = bubble
8 changes: 2 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@ import (
"bubble/routers"
"bubble/setting"
"fmt"
"os"
)

func main() {
if len(os.Args) < 2 {
fmt.Println("Usage:./bubble conf/config.ini")
return
}

// 加载配置文件
if err := setting.Init(os.Args[1]); err != nil {
if err := setting.Init("conf/config.ini"); err != nil {
fmt.Printf("load config from file failed, err:%v\n", err)
return
}
Expand Down