Changed app to be on correct port (I think/hope)
This commit is contained in:
parent
a45b3644a8
commit
ce47f6a76b
1 changed files with 4 additions and 2 deletions
|
|
@ -76,6 +76,8 @@ app.use(express.static(path.join(__dirname, 'public'), {
|
|||
}
|
||||
}));
|
||||
|
||||
app.listen(3000, () => {
|
||||
console.log('Server is running on port 3000');
|
||||
const port = process.env.PORT || 3000;
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Server is running on port ${port}`);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue