let pgp = require('pg-promise')({ssl: true});
// let databaseUrl = process.env.DATABASE_URL || require('./config');

// module.exports = pgp(databaseUrl);


let pgp = require('pg-promise')(); // initialization option was {ssl: true}, sorry for deleting, but wasn't working for me with it

let connection = process.env.DATABASE_URL || require('./config');

module.exports = pgp(connection);


Delete initialization options and change variable name
Delete initialization options and change variable name
