Skip to content

Commit fbda429

Browse files
port variable
1 parent 821b18c commit fbda429

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ app.use('/', require('./routes'));
2323
app.use(errorHandler);
2424

2525
function startServer() {
26-
app.listen(process.env.PORT || 5000, () => {
27-
28-
console.log(`Server is running on port ${process.env.PORT || 5000}!`);
26+
const port = process.env.PORT || 5000;
27+
app.listen(port, () => {
28+
console.log(`Server is running on port ${port}!`);
2929
});
3030
}
3131

0 commit comments

Comments
 (0)