mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +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 {
|
||||
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