Skip to content

Commit 4fb1912

Browse files
committed
listen to the env port
1 parent 95e5aa5 commit 4fb1912

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/@apphosting/adapter-angular/src/simple-server/bundled_server.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44638,4 +44638,7 @@ app.use(express.static(path$2.join(__dirname, "..", "browser")));
4463844638
app.get("*", function (request, response) {
4463944639
response.sendFile(path$2.join(__dirname, "..", "browser", "index.html"));
4464044640
});
44641-
app.listen(4000);
44641+
var port = process.env.PORT || 3000;
44642+
app.listen(port, () => {
44643+
console.log(`Node Express server listening on http://localhost:${port}`);
44644+
});

packages/@apphosting/adapter-angular/src/simple-server/server.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ app.use(express.static(path.join(__dirname, "..", "browser")));
99
app.get("*", function (request, response) {
1010
response.sendFile(path.join(__dirname, "..", "browser", "index.html"));
1111
});
12-
app.listen(4000);
12+
var port = process.env.PORT || 3000;
13+
app.listen(port, () => {
14+
console.log(`Node Express server listening on http://localhost:${port}`);
15+
});

0 commit comments

Comments
 (0)