Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/autodeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI/CD Pipeline

on:
push:
branches: develop
branches: main
jobs:
CI-PIPELINE:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion CICD/Dockerfile(backend)
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ COPY . .
EXPOSE 8081

# Start the application
CMD ["npm", "run", "dev"]
CMD ["npm", "run", "prod"]
2 changes: 1 addition & 1 deletion CICD/Dockerfile(frontend)
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ EXPOSE 8081
EXPOSE 5173

# Start the application
CMD ["npm", "run", "dev"]
CMD ["npm", "run", "prod"]
Binary file modified CICD/ReadME.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions CICD/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
volumes:
- ./backend:/app
- /app/node_modules
command: ["npm", "run", "dev"]
command: ["npm", "run", "prod"]
networks:
- course-matrix-net

Expand All @@ -27,7 +27,7 @@ services:
volumes:
- ./frontend:/app
- /app/node_modules
command: ["npm", "run", "dev"]
command: ["npm", "run", "prod"]
depends_on:
- backend
networks:
Expand Down
3 changes: 2 additions & 1 deletion course-matrix/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "ts-node -r dotenv/config src/index.ts",
"test": "jest",
"test:watch": "jest --watch",
"build": "vite build"
"build": "vite build",
"prod": "ts-node -r dotenv/config src/index.ts"
},
"keywords": [],
"author": "",
Expand Down
4 changes: 2 additions & 2 deletions course-matrix/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
volumes:
- ./backend:/app
- /app/node_modules
command: ["npm", "run", "dev"]
command: ["npm", "run", "prod"]
networks:
- course-matrix-net

Expand All @@ -27,7 +27,7 @@ services:
volumes:
- ./frontend:/app
- /app/node_modules
command: ["npm", "run", "dev"]
command: ["npm", "run", "prod"]
depends_on:
- backend
networks:
Expand Down
2 changes: 1 addition & 1 deletion course-matrix/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ EXPOSE 8081
EXPOSE 5173

# Start the application
CMD ["npm", "run", "dev"]
CMD ["npm", "run", "prod"]
1 change: 1 addition & 0 deletions course-matrix/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"build": "vite build",
"lint": "eslint .",
"preview": "vite preview",
"prod": "vite build && vite preview --port 5173",
"test": "jest",
"test:watch": "jest --watch"
},
Expand Down