Skip to content

Commit

Permalink
Merge pull request #20 from linkernetworks/hwchiu/config-parser
Browse files Browse the repository at this point in the history
Fix the flag prase problem and remove unused logs
  • Loading branch information
Hung-Wei Chiu authored Jun 21, 2018
2 parents 2d92cc1 + 45cf32e commit adf70aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/local.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}
},
"mongo": {
"url": "mongodb://localhost:31717/vortex_test"
"url": "mongodb://localhost:27017/vortex_test"
},
"logger": {
"dir": "./logs",
Expand Down
2 changes: 2 additions & 0 deletions src/cmd/vortex/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ func main() {
flag.StringVar(&host, "host", "0.0.0.0", "hostname")
flag.StringVar(&port, "port", "7890", "port")

flag.Parse()

a := server.App{}
a.LoadConfig(configPath).Start(host, port)
}
1 change: 0 additions & 1 deletion src/server/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ func (a *App) Start(host, port string) error {
a.InitilizeService()

bind := net.JoinHostPort(host, port)
logger.Debugf("Starting LISA on host: %s port: %s", host, port)

return http.ListenAndServe(bind, a.AppRoute())
}
Expand Down

0 comments on commit adf70aa

Please sign in to comment.