Skip to content

Commit

Permalink
Feature: Added Dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
vongohren committed Apr 25, 2021
1 parent 02dc4b4 commit cf655cc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Need the URI to work
MONGODB_URI=
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ exportSettingsProd
npm-debug.log
.DS_Store
.vscode/
.env
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "This is a server that parses pages with comics and serve them up as an rss feed",
"private": true,
"engines": {
"node": "9.10.0"
"node": "12.18.0"
},
"scripts": {
"heroku-prebuild": "npm install --only=dev",
Expand Down Expand Up @@ -50,6 +50,7 @@
"babel-preset-stage-0": "^6.24.1",
"babel-tape-runner": "^2.0.1",
"babel-watch": "^2.0.6",
"dotenv": "^8.2.0",
"mongoui": "^4.1.2"
},
"heroku-run-build-script": true
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require('dotenv').config()
var express = require('express');
const path = require('path');
var mongoose = require('mongoose');
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1137,6 +1137,11 @@ [email protected], [email protected]:
dom-serializer "0"
domelementtype "1"

dotenv@^8.2.0:
version "8.2.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a"
integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==

ecc-jsbn@~0.1.1:
version "0.1.2"
resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9"
Expand Down

0 comments on commit cf655cc

Please sign in to comment.