Skip to content

Commit f017164

Browse files
author
pandadiestro
committed
feat: dynamic port selection
1 parent f2cfc67 commit f017164

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stiller-backend/cmd/serve/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33
import (
44
"log"
55
"net/http"
6+
"stiller"
67
"stiller/internal/router"
78
)
89

@@ -14,7 +15,7 @@ func main() {
1415

1516
log.Println("[ ✅ ] server started")
1617

17-
log.Fatalln(http.ListenAndServe(":6969", new_router))
18+
log.Fatalln(http.ListenAndServe(stiller.StillerConfig.Port, new_router))
1819
}
1920

2021

0 commit comments

Comments
 (0)