Skip to content

Commit

Permalink
Update the port
Browse files Browse the repository at this point in the history
  • Loading branch information
yinxoxo committed Jul 5, 2024
1 parent 1a73b24 commit d0e5399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Week3/NodeJS/server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const express = require("express");
const app = express();
const port = 3000;
const port = 3000 || process.env.PORT;

app.get("/", (req, res) => {
res.send("<h1>Hello, My Server!</h1>");
Expand Down

0 comments on commit d0e5399

Please sign in to comment.