Skip to content

Commit 074802b

Browse files
authored
auto detect port added
1 parent c4f4486 commit 074802b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,6 @@ app.post('/upload', (req, res) => {
9595

9696

9797

98-
const port = 5000;
98+
const port = process.env.PORT || 5000;
9999

100100
app.listen(port, () => console.log(`Server started on port ${port}`));

0 commit comments

Comments
 (0)