Skip to content

Commit b9633d3

Browse files
Merge pull request #39 from talent-path-pipeline/fix-port
Fix port message when server is running
2 parents 6192a03 + fbda429 commit b9633d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server.js

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

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

0 commit comments

Comments
 (0)