From 46c617b8f52629540462278788916b7c3d2cf021 Mon Sep 17 00:00:00 2001 From: M_Kececi Date: Tue, 17 Feb 2026 13:30:04 +0300 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- svc/main.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/svc/main.go b/svc/main.go index 901c921..2d7dd5f 100644 --- a/svc/main.go +++ b/svc/main.go @@ -616,8 +616,16 @@ func main() { ), ) - log.Println("✅ Server çalışıyor: http://localhost:8080") - log.Fatal(http.ListenAndServe(":8080", handler)) + port := strings.TrimSpace(os.Getenv("HTTPPORT")) + if port == "" { + port = "8080" + } + if !strings.HasPrefix(port, ":") { + port = ":" + port + } + + log.Println("Server calisiyor: http://localhost" + port) + log.Fatal(http.ListenAndServe(port, handler)) } func mountSPA(r *mux.Router) {