sleep-tracker-backend/data/dbConfig.js

9 lines
184 B
JavaScript
Raw Normal View History

require("dotenv").config();
const knex = require('knex');
const config = require('../knexfile');
2019-08-01 23:32:51 +00:00
const environment = process.env.DB_ENV;
module.exports = knex(config[environment]);