setting db up for heroku

master
Matt Huntington 10 years ago
parent 118bd05ab5
commit 5ada1d6ea5

@ -1,8 +1,7 @@
var Sequelize = require('sequelize');
var db = new Sequelize('sedstack', 'matthuntington', '', {
host: 'localhost',
dialect: 'postgres'
});
var DB_URL = process.env.DATABASE_URL || 'postgres://matthuntington@localhost:5432/sedstack';
var db = new Sequelize(DB_URL);
module.exports = db;

Loading…
Cancel
Save