From 276f886c02d657f061648f33244118b3e9871c26 Mon Sep 17 00:00:00 2001 From: klaas Date: Thu, 23 May 2024 20:32:30 +0000 Subject: [PATCH] env --- .env_default | 6 ++++++ app.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.env_default b/.env_default index ed9c5cc..4912b34 100644 --- a/.env_default +++ b/.env_default @@ -1 +1,7 @@ DATABASE_URL=postgres://user:psw@localhost:5432/postgres +SESSIONSECRET=Your Secret +MAILHOST= +MAILUSER= +MAILFROM= +MAILPASS= +PORT=2000 diff --git a/app.js b/app.js index 13a0175..30b77f1 100644 --- a/app.js +++ b/app.js @@ -9,7 +9,7 @@ const moment=require('moment') require('dotenv').config(); const app = express(); -const port = 2001; +const port = process.env.PORT; // Middleware app.use(express.static(path.join(__dirname, 'public')));