Merge remote-tracking branch 'origin/master'
This commit is contained in:
12
svc/main.go
12
svc/main.go
@@ -616,8 +616,16 @@ func main() {
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
log.Println("✅ Server çalışıyor: http://localhost:8080")
|
port := strings.TrimSpace(os.Getenv("HTTPPORT"))
|
||||||
log.Fatal(http.ListenAndServe(":8080", handler))
|
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) {
|
func mountSPA(r *mux.Router) {
|
||||||
|
|||||||
Reference in New Issue
Block a user