This commit is contained in:
nitezs 2023-09-17 17:02:59 +08:00
parent 354379b12a
commit c0e6b62625

View File

@ -30,10 +30,7 @@ func init() {
LogLevel: "info",
BasePath: "/",
}
err := godotenv.Load()
if err != nil {
return
}
_ = godotenv.Load()
if os.Getenv("PORT") != "" {
atoi, err := strconv.Atoi(os.Getenv("PORT"))
if err != nil {