修改端口
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m1s

This commit is contained in:
Song367 2025-09-30 16:49:55 +08:00
parent 2760140445
commit f78ebc2959
2 changed files with 3 additions and 3 deletions

View File

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

View File

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