mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
fix: removed localhost from server hostname
This commit is contained in:
@@ -41,7 +41,7 @@ func InitServer() *chi.Mux {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func StartServer(router *chi.Mux) error {
|
func StartServer(router *chi.Mux) error {
|
||||||
fmt.Println("Server starting on http://localhost:" + os.Getenv("PORT"))
|
fmt.Println("Server starting on :" + os.Getenv("PORT"))
|
||||||
err := http.ListenAndServe("localhost:"+os.Getenv("PORT"), router)
|
err := http.ListenAndServe(":"+os.Getenv("PORT"), router)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user