Fixed port code
This commit is contained in:
parent
eb34e2981a
commit
4c4e187eac
1 changed files with 1 additions and 1 deletions
2
index.js
Executable file → Normal file
2
index.js
Executable file → Normal file
|
@ -16,6 +16,6 @@ app.use('/', (req, res) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const PORT = process.env.PORT || process.argv[1] || 8080;
|
const PORT = process.env.PORT || +process.argv[1] || 8080;
|
||||||
app.listen(PORT, () => {});
|
app.listen(PORT, () => {});
|
||||||
console.log("this ran :P");
|
console.log("this ran :P");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue