We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a72efb5 commit 370db68Copy full SHA for 370db68
1 file changed
server.js
@@ -23,6 +23,6 @@ localhost.get(/.*/, function (req, res) {
23
res.sendFile(__dirname + mainFile);
24
});
25
26
-localhost.listen(localhostPort, function () {
27
- console.log("Start surfing at localhost:%d", localhostPort);
+localhost.listen(process.env.PORT || localhostPort, function () {
+ console.log("Start surfing at localhost:%d", (process.env.PORT || localhostPort));
28
0 commit comments