Skip to content

Commit

Permalink
set server port based on config file
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrews committed Jul 26, 2022
1 parent f172e32 commit 3fcc659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func main() {
e.GET("/ws", wsHandlerChan)

// start server
e.Logger.Fatal(e.Start(":8081"))
e.Logger.Fatal(e.Start(":" + viper.GetString("additional_settings.webserverport")))
}

func handleConfigFile() {
Expand Down

0 comments on commit 3fcc659

Please sign in to comment.