sleep-tracker-backend/data/dbConfig.js
2019-08-02 01:32:51 +02:00

9 lines
184 B
JavaScript

require("dotenv").config();
const knex = require('knex');
const config = require('../knexfile');
const environment = process.env.DB_ENV;
module.exports = knex(config[environment]);