Skip to content

Commit

Permalink
Adicionando process.env.PORT
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielCoruja authored Jan 18, 2022
1 parent 203f2ce commit 4905600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const app = require('./app');

const PORT = 3000;
const PORT = process.env.PORT || 3000;

app.listen(PORT, () => console.log(`Rodando na porta ${PORT}`));

0 comments on commit 4905600

Please sign in to comment.