Skip to content

Commit

Permalink
chore: Update port from 3001 to 80 for better accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwei committed Nov 4, 2024
1 parent b75c864 commit 4594644
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN npm install pnpm -g
RUN pnpm install

# 暴露应用端口
EXPOSE 3001
EXPOSE 80

# 启动应用
CMD ["npm", "start"]
4 changes: 2 additions & 2 deletions src/server/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ router.use("/wallpaper", wallpaper);
// 上传
router.use("/upload", upload);

const server = app.listen(3001, "0.0.0.0", () => {
console.log("Click here to open the browser: http://localhost:3001");
const server = app.listen(80, "0.0.0.0", () => {
console.log("Click here to open the browser: http://localhost:80");
});

ViteExpress.bind(app, server);

0 comments on commit 4594644

Please sign in to comment.