Skip to content

Commit df5faad

Browse files
author
Danny Diekroeger
committed
added .env file, updated .dockerignore, added dotenv to package.json
1 parent f2f9098 commit df5faad

File tree

5 files changed

+31
-21
lines changed

5 files changed

+31
-21
lines changed

.dockerignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
.*
21
LICENSE
32
README.md
43
test/*
4+
.argconfig
5+
.dockerignore
6+
.idea
7+
.git
8+
.gitignore

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
KRSV2_DBURL=mongodb://localhost:27017/mytestdb
2+

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ COPY package*.json ./
66

77
RUN npm install
88

9-
ENV KRSV2_DBURL '< DB URL HERE >'
10-
119
COPY . .
1210

1311
EXPOSE 6833

package-lock.json

Lines changed: 22 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "./node_modules/mocha/bin/_mocha --timeout 20000 --recursive test/",
8-
"start": "node bin/server.js"
8+
"start": "node -r dotenv/config bin/server.js"
99
},
1010
"license": "MIT",
1111
"devDependencies": {
@@ -19,6 +19,7 @@
1919
"bignumber.js": "^7.2.1",
2020
"bitgo-utxo-lib": "^1.1.2",
2121
"body-parser": "^1.18.3",
22+
"dotenv": "^6.1.0",
2223
"ethereumjs-tx": "^1.3.7",
2324
"express": "^4.16.3",
2425
"jsrender": "^0.9.90",

0 commit comments

Comments
 (0)