Skip to content

Commit

Permalink
update history.js to be consistent with changes in DRE. This allows for
Browse files Browse the repository at this point in the history
deployment with remote mongodb, a requirement for a docker deployment.
  • Loading branch information
mhiner committed Jun 19, 2015
1 parent 7f054c4 commit 321962f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/history.js
Expand Up @@ -2,7 +2,11 @@

var mongoose = require('mongoose');
var Schema = mongoose.Schema;
mongoose.connect('mongodb://localhost:27017/dre');

var mongo_url = process.env.MONGO_DB || 'localhost';
var mongo_port = process.env.MONGO_PORT || 27017;
var mongo_name = process.env.MONGO_NAME || 'dre';
mongoose.connect('mongodb://'+mongo_url+':'+mongo_port+'/'+mongo_name);

exports.getFullEventName = function (typestring, callback) {
var fullEventNames = {
Expand Down

0 comments on commit 321962f

Please sign in to comment.