Skip to content

Commit

Permalink
Update server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricioveronez authored Mar 20, 2024
1 parent 4ff1d99 commit 01dab53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { setTimeout } from "timers/promises";

const app = express();
const PORT = parseInt(`${process.env.PORT || 3000}`);
const SIGTERM_SECONDS = parseInt(`${process.env.SIGTERM_SECONDS || 20000}`);
const SIGTERM_SECONDS = parseInt(`${process.env.SIGTERM_SECONDS || 20}`) * 1000;

let saudavel = true
let readTime = new Date(Date.now());
Expand Down Expand Up @@ -95,4 +95,4 @@ app.get("/", (req: Request, res: Response) => {
res.render("index");
});

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

0 comments on commit 01dab53

Please sign in to comment.