Commit 3a091ff9 authored by bananaappletw's avatar bananaappletw
Browse files

Simplify code for heroku

parent 936d9224
......@@ -14,8 +14,9 @@ dbconfig.logging = config.debug ? logger.info : false;
var sequelize = null;
// Heroku specific
if (process.env.DATABASE_URL)
sequelize = new Sequelize(process.env.DATABASE_URL, dbconfig.username, dbconfig.password, dbconfig);
sequelize = new Sequelize(process.env.DATABASE_URL);
else
sequelize = new Sequelize(dbconfig.database, dbconfig.username, dbconfig.password, dbconfig);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment