can pick port from ENV
This commit is contained in:
parent
ae8f9ec6a1
commit
3eb9b42a94
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ const buildApp = require("./buildApp");
|
||||||
|
|
||||||
const app = buildApp();
|
const app = buildApp();
|
||||||
|
|
||||||
const PORT = 3003;
|
const PORT = process.env.PORT || 3003;
|
||||||
app.listen(PORT, () => {
|
app.listen(PORT, () => {
|
||||||
console.log(`Server running on port ${PORT}`);
|
console.log(`Server running on port ${PORT}`);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue