修改端口
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m1s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m1s
This commit is contained in:
parent
2760140445
commit
f78ebc2959
@ -15,10 +15,10 @@ COPY . .
|
|||||||
|
|
||||||
# 设置环境变量
|
# 设置环境变量
|
||||||
ENV HOST=0.0.0.0
|
ENV HOST=0.0.0.0
|
||||||
ENV PORT=3000
|
ENV PORT=80
|
||||||
|
|
||||||
# 暴露端口
|
# 暴露端口
|
||||||
EXPOSE 3000
|
EXPOSE 80
|
||||||
|
|
||||||
# 启动项目
|
# 启动项目
|
||||||
CMD ["yarn", "dev"]
|
CMD ["yarn", "dev"]
|
||||||
@ -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 () => {
|
server.listen(PORT, '0.0.0.0', async () => {
|
||||||
console.log(`服务器运行在端口 ${PORT}`);
|
console.log(`服务器运行在端口 ${PORT}`);
|
||||||
await initializeServer();
|
await initializeServer();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user