3000 port

This commit is contained in:
Song367 2025-10-09 10:06:28 +08:00
parent f78ebc2959
commit a418690eb1
2 changed files with 3 additions and 3 deletions

View File

@ -15,10 +15,10 @@ COPY . .
# 设置环境变量
ENV HOST=0.0.0.0
ENV PORT=80
ENV PORT=3000
# 暴露端口
EXPOSE 80
EXPOSE 3000
# 启动项目
CMD ["yarn", "dev"]

View File

@ -536,7 +536,7 @@ io.on('connection', (socket) => {
});
// 启动服务器
const PORT = process.env.PORT || 80;
const PORT = process.env.PORT || 3000;
server.listen(PORT, '0.0.0.0', async () => {
console.log(`服务器运行在端口 ${PORT}`);
await initializeServer();