From 13b0adaec3d410f0199198e2a57b1885d0fa77c9 Mon Sep 17 00:00:00 2001 From: Nadav Ivgi Date: Tue, 5 Feb 2019 09:23:02 +0200 Subject: [PATCH] Add dotenv to automatically load variables from .env --- app.js | 2 ++ package.json | 1 + 2 files changed, 3 insertions(+) diff --git a/app.js b/app.js index 73e63ec..fa1a3f5 100755 --- a/app.js +++ b/app.js @@ -2,6 +2,8 @@ 'use strict'; +require('dotenv').config(); + var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); diff --git a/package.json b/package.json index 0f528cf..677af28 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "crypto-js": "3.1.9-1", "debug": "~2.6.0", "decimal.js": "7.2.3", + "dotenv": "^6.2.0", "electrum-client": "github:chaintools/node-electrum-client#43a999036f9c5", "express": "^4.16.4", "express-session": "1.15.6",