Skip to content

Instantly share code, notes, and snippets.

@ruprict
Created July 19, 2016 13:46
Show Gist options
  • Save ruprict/b1b1d1599b679704a2307d177994e078 to your computer and use it in GitHub Desktop.
Save ruprict/b1b1d1599b679704a2307d177994e078 to your computer and use it in GitHub Desktop.
var Sequelize =require('sequelize');
const Conn = new Sequelize(process.env.DATABASE_URL);
// const Conn = new Sequelize(
// 'test',
// 'postgres',
// 'postgres',
// { dialect: 'postgres', host: 'localhost' }
// )
function connection() {
console.log("*** Creating connection")
const Conn = new Sequelize(process.env.DATABASE_URL);
return Conn;
}
module.exports = connection();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment