const devConfig = require('../config/default.json')
const productionConfig = require('../config/production.json')

const dotenv = require('dotenv')
const path = require('path')

dotenv.config({ path: path.resolve(__dirname, '..', '.env') })

module.exports = {
  development: devConfig.postgres,
  production: productionConfig.postgres,
}

@@ -48,197 +48,8 @@
 on')
-%0Aconst productionConfig = require('../config/production.json')%0A%0Aconst dotenv = require('dotenv')%0Aconst path = require('path')%0A%0Adotenv.config(%7B path: path.resolve(__dirname, '..', '.env') %7D)
 %0A%0Amo
@@ -118,33 +118,73 @@
 on: 
-productionConfig.postgres
+%7B%0A    client: 'pg',%0A    connection: process.env.DATABASE_URL,%0A  %7D
 ,%0A%7D%0A

Read production config from env.