From 490560011bc3b0da3bf9513cd7ec77a7de97dbf0 Mon Sep 17 00:00:00 2001 From: Gabriel Dalseco <55258427+GabrielCoruja@users.noreply.github.com> Date: Tue, 18 Jan 2022 19:42:53 -0300 Subject: [PATCH] Adicionando process.env.PORT --- src/api/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/server.js b/src/api/server.js index bdcc2b9..b77242c 100644 --- a/src/api/server.js +++ b/src/api/server.js @@ -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}`));