fix: update file path separator in .air.toml and improve server start message

This commit is contained in:
Floriansylvain
2025-12-13 18:53:17 +01:00
parent 0238c7511d
commit 99812ddba4
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -4,10 +4,11 @@ import (
"RenewCMS/api"
"RenewCMS/main/route"
"fmt"
"github.com/go-chi/chi/v5"
"github.com/joho/godotenv"
"net/http"
"os"
"github.com/go-chi/chi/v5"
"github.com/joho/godotenv"
)
var possibleEnvFileLocations = []string{".env", "../.env"}
@@ -52,7 +53,7 @@ func InitServer() *chi.Mux {
}
func StartServer(router *chi.Mux) error {
fmt.Println("Server starting on :" + os.Getenv("PORT"))
fmt.Println("Server starting on http://" + os.Getenv("HOST"))
err := http.ListenAndServe(":"+os.Getenv("PORT"), router)
return err
}