Skip to content

Commit 3f11985

Browse files
GabrielCorujaphramos07
authored andcommitted
Adicionando process.env.PORT
1 parent 203f2ce commit 3f11985

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/api/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ const app = express();
77

88
app.get('/users', rescue(UserController));
99

10-
app.use(errorMiddleware);
10+
app.use(errorMiddleware);
1111

1212
module.exports = app;

src/api/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const app = require('./app');
22

3-
const PORT = 3000;
3+
const PORT = process.env.PORT || 3000;
44

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

0 commit comments

Comments
 (0)