db connection file

master
Matt Huntington 9 years ago
parent 6249ab3c4f
commit 94e11ef763

@ -0,0 +1,7 @@
var Sequelize = require('sequelize'); //require sequelize package
var DB_URL = process.env.DATABASE_URL || 'postgres://matthuntington@localhost:5432/runs'; //use either environment variable or static url
var db = new Sequelize(DB_URL); //create the connection. Will not run multiple times, due to require cacheing the file
module.exports = db;
Loading…
Cancel
Save