移除 APP_PORT,更新 Docker Compose 配置

This commit is contained in:
2025-04-21 13:57:57 +08:00
parent 91ef0b0ac5
commit 806dca928f
5 changed files with 24 additions and 16 deletions

View File

@@ -2,7 +2,6 @@ package web
import (
"net/http"
"platform/pkg/env"
g "platform/web/globals"
"runtime"
@@ -13,9 +12,9 @@ import (
"github.com/gofiber/fiber/v2/middleware/requestid"
"github.com/google/uuid"
"github.com/jxskiss/base62"
)
import _ "net/http/pprof"
_ "net/http/pprof"
)
type Config struct {
Listen string
@@ -72,9 +71,8 @@ func (s *Server) Run() error {
}()
// listen
port := env.AppPort
slog.Info("Server started on :" + port)
err := s.fiber.Listen(":" + port)
slog.Info("Server started on :8080")
err := s.fiber.Listen(":8080")
if err != nil {
slog.Error("Failed to start server", slog.Any("err", err))
}