Changed app to be on correct port (I think/hope)

This commit is contained in:
Alan Bridgeman 2023-06-19 10:40:42 -05:00
parent a45b3644a8
commit ce47f6a76b

View file

@ -76,6 +76,8 @@ app.use(express.static(path.join(__dirname, 'public'), {
} }
})); }));
app.listen(3000, () => { const port = process.env.PORT || 3000;
console.log('Server is running on port 3000');
app.listen(port, () => {
console.log(`Server is running on port ${port}`);
}); });