Skip to content

Commit

Permalink
fix dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
gridsane committed Apr 4, 2017
1 parent cd69b40 commit 3978c0c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ services:
before_script:
- sleep 15
- mongo chdb_test --eval 'db.addUser("travis", "test");'
env:
global:
- MONGO_URI_TEST=mongodb://travis:test@127.0.0.1:27017/chdb_test
install:
- npm install -g npm@latest
- npm install
script:
- npm run lint
- MONGO_URI_TEST=mongodb://travis:test@127.0.0.1:27017/chdb_test npm test
- npm test
8 changes: 7 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import dotenv from 'dotenv';

export default dotenv.config().parsed;
dotenv.config();

export default {
MONGO_URI: process.env.MONGO_URI,
MONGO_URI_TEST: process.env.MONGO_URI_TEST,
YOUTUBE_API: process.env.YOUTUBE_API,
};

0 comments on commit 3978c0c

Please sign in to comment.