Adding dotenv to app.js to enable running in dev environment

This commit is contained in:
JayWll
2020-04-11 13:00:00 -06:00
parent b64126a7fe
commit b5b49c5424
2 changed files with 4 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
const db = require('../db/db')
const request = require('request')
const path = require('path')
const dotenv = require('dotenv').config({path: path.join(__dirname, '../../.env')})
require('dotenv').config({path: path.join(__dirname, '../../.env')})
// The URL from which to export production data
const url = 'https://jasonsplant.glitch.me/exportall'