From d0e53999e3e1ea2871b85328cd8980b7c5dfdaec Mon Sep 17 00:00:00 2001 From: chris Date: Fri, 5 Jul 2024 16:17:46 +0800 Subject: [PATCH] Update the port --- Week3/NodeJS/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Week3/NodeJS/server.js b/Week3/NodeJS/server.js index fd19cde..b413414 100644 --- a/Week3/NodeJS/server.js +++ b/Week3/NodeJS/server.js @@ -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("

Hello, My Server!

");