summaryrefslogtreecommitdiff
path: root/server/db.js
blob: a56c1639f4a517aa261adca71551fd146d92697e (plain)
1
2
3
4
5
6
7
8
9
10
11
var Sequelize = require("sequelize"),
  pg = require('pg');

var db = module.exports = {}

var DATABASE_URL = process.env.DATABASE_URL || ('postgres://postgres@localhost/' + config.name)

db.sequelize = new Sequelize(DATABASE_URL, {
  dialect: 'postgres',
  protocol: null,
})