Support for .env

master
Mark Moffat 2019-12-16 17:57:45 +10:30
parent 370a5b1a17
commit 23ac0fdbe0
4 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@ -4,4 +4,5 @@ public/uploads
/config/*-local.json
.vscode
**.DS_Store
.env
ecosystem.config.js

1
app.js
View File

@ -1,3 +1,4 @@
require('dotenv').config();
const express = require('express');
const path = require('path');
const logger = require('morgan');

5
package-lock.json generated
View File

@ -2740,6 +2740,11 @@
"is-obj": "^2.0.0"
}
},
"dotenv": {
"version": "8.2.0",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz",
"integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw=="
},
"duplexer3": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz",

View File

@ -36,6 +36,7 @@
"colors": "^1.4.0",
"connect-mongodb-session": "^2.2.0",
"cookie-parser": "^1.4.4",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-handlebars": "^3.1.0",
"express-rate-limit": "^5.0.0",