Selaa lähdekoodia

- Add .env configuration

Parad0x 7 vuotta sitten
vanhempi
commit
8516c72d51
3 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  1. 5 0
      package-lock.json
  2. 1 0
      package.json
  3. 2 0
      src/index.js

+ 5 - 0
package-lock.json

@@ -1423,6 +1423,11 @@
         "is-obj": "1.0.1"
       }
     },
+    "dotenv": {
+      "version": "6.0.0",
+      "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-6.0.0.tgz",
+      "integrity": "sha512-FlWbnhgjtwD+uNLUGHbMykMOYQaTivdHEmYwAKFjn6GKe/CqY0fNae93ZHTd20snh9ZLr8mTzIL9m0APQ1pjQg=="
+    },
     "dottie": {
       "version": "2.0.0",
       "resolved": "https://registry.npmjs.org/dottie/-/dottie-2.0.0.tgz",

+ 1 - 0
package.json

@@ -23,6 +23,7 @@
   },
   "dependencies": {
     "chalk": "^2.4.1",
+    "dotenv": "^6.0.0",
     "moment": "^2.22.2",
     "randomatic": "^3.0.0",
     "sequelize": "^4.38.0",

+ 2 - 0
src/index.js

@@ -1,5 +1,7 @@
 //@flow
 
+require("dotenv").config();
+
 const net = require("net");
 const path = require("path");
 const chalk = require("chalk");