Skip to content

Commit

Permalink
Fix get port from config
Browse files Browse the repository at this point in the history
  • Loading branch information
debug-ing committed Dec 11, 2024
1 parent 658422c commit 3008c46
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func main() {
r.GET("/metrics", gin.WrapH(promhttp.Handler()))

log.Println("Radio server is running on http://localhost:8080/radio")
if err := r.Run(":8080"); err != nil {
if err := r.Run(":" + config.App.Port); err != nil {
log.Fatal("Error starting server:", err)
}
}
Binary file added main
Binary file not shown.

0 comments on commit 3008c46

Please sign in to comment.