Skip to content

Commit

Permalink
feat: Replace ports 3333 with 3000
Browse files Browse the repository at this point in the history
  • Loading branch information
Yongbeom-Kim committed Nov 13, 2024
1 parent d3a05ca commit fd0a2fa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion peerprep/backend/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
context: ./matching-service
dockerfile: Dockerfile
ports:
- "3333:3333"
- "3000:3000"
env_file:
- ./matching-service/.env
restart: always
Expand Down
2 changes: 1 addition & 1 deletion peerprep/backend/matching-service/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
REDIS_CLOUD_URI=redis://default:TRXhRgutyzRMWWE8Mpl0RAYTECWRuxFH@redis-14179.c295.ap-southeast-1-1.ec2.redns.redis-cloud.com:14179/0
NODE_ENV=development
PORT=3333
PORT=3000
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const createRequest = async (req: Request, res: Response): Promise<void>

// find within 30 seconds
let matchedUser = null;
const timeout = 33330;
const timeout = 30000;
const startTime = Date.now();

while (!matchedUser && Date.now() - startTime < timeout) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const matchStatusStream = (req: Request, res: Response) => {
res.flushHeaders(); // Ensure headers are sent immediately
const userId = req.params.userId as string; // Get userId from URL parameters
const timeout = 33330; // 30-second timeout for example
const timeout = 30000; // 30-second timeout for example
const startTime = Date.now();
// Function to send data to client
Expand Down
2 changes: 1 addition & 1 deletion peerprep/backend/matching-service/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import apiRoutes from './routes/apiRoutes'; // Import your routes

dotenv.config();

const PORT = process.env.PORT ?? 3333;
const PORT = process.env.PORT ?? 3000;

const app = express();

Expand Down

0 comments on commit fd0a2fa

Please sign in to comment.