Skip to content

Commit 31e7b19

Browse files
author
sandeeprudola
committed
fixes-4
1 parent 1950aca commit 31e7b19

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

backend/.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
MONGO_URL="mongodb+srv://sandeeprudola10:[email protected]/?retryWrites=true&w=majority&appName=Cluster0"
1+
MONGO_URL="mongodb+srv://sandeeprudola10:[email protected]/?retryWrites=true&w=majority&appName=Cluster0"
2+
PORT=3000

backend/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ const cors=require("cors");
33
const rootRouter = require("./routes/index");
44

55
const app=express();
6-
76
app.use(cors());
87
app.use(express.json())
8+
const PORT = process.env.PORT || 3000;
99
app.use('/api/v1',rootRouter);
10-
app.listen(3000, () => {
11-
console.log("Server running on port 3000");
12-
});
10+
app.listen(PORT, () => {
11+
console.log(`Server started on port ${PORT}`);
12+
});

frontend/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VITE_BACKEND_URL=https://paytm-coral-two.vercel.app
1+
VITE_BACKEND_URL=https://paytm-backend-production-04d3.up.railway.app

0 commit comments

Comments
 (0)