Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
Reene444 committed Oct 6, 2024
2 parents d407382 + 8314a2d commit 31b5d40
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
#### keep improving the engine performance

## :wrench: Improvement
- add elasticsearch
- mongodb synchro to elasticsearch
- add stripe


## :sparkles: Skills
Expand Down
26 changes: 26 additions & 0 deletions frontend_web/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 使用官方的 node 镜像作为基础镜像
FROM node:14

# 设置工作目录
WORKDIR /app

# 复制 package.json 和 package-lock.json 以安装依赖
COPY package*.json ./

# 安装项目依赖
RUN npm install

# 复制应用程序的源代码到容器中
COPY . .

# 构建 React 应用
RUN npm run build

# 使用 serve 来提供构建后的应用,端口号可以是 3000 或者任何你想要的端口
RUN npm install -g serve

# 暴露端口 3000
EXPOSE 3000

# 启动应用
CMD ["serve", "-s", "build", "-l", "3000"]
5 changes: 1 addition & 4 deletions frontend_web/src/pages/RoomManager/RoomManagerPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ const RoomManagerPage = ({ }) => {
setOpenModal(true); // Open the modal when a room is clicked
};

useEffect(()=>{
setSelectedRoom(1);
setOpenModal(true);
},[])


const handleCloseModal = () => {
setSelectedRoom(null);
Expand Down

0 comments on commit 31b5d40

Please sign in to comment.