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')));