fix: removed localhost from server hostname
This commit is contained in:
1 parent
411adc02b0
commit
2805425317
1 file changed
+2
-2
@@ -41,7 +41,7 @@ func InitServer() *chi.Mux {
|
||||
}
|
||||
|
||||
func StartServer(router *chi.Mux) error {
|
||||
fmt.Println("Server starting on http://localhost:" + os.Getenv("PORT"))
|
||||
err := http.ListenAndServe("localhost:"+os.Getenv("PORT"), router)
|
||||
fmt.Println("Server starting on :" + os.Getenv("PORT"))
|
||||
err := http.ListenAndServe(":"+os.Getenv("PORT"), router)
|
||||
return err
|
||||
}
|
||||
Reference in new issue
Block a user