var mongoose = require('mongoose');

mongoURI = process.env.CUSTOMCONNSTR_MONGOLAB_URI || 'mongodb://localhost/wikipoetry';
mongoose.connect(mongoURI);

var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', function () {
 console.log('Mongodb connection open');
});

// User.login = function(user, pass, cb) {
//   mongoose 
// };

module.exports = db;
@@ -82,16 +82,44 @@
 B_URI %7C%7C
+ process.env.MONGOLAB_URI %7C%7C
  'mongod
@@ -350,73 +350,8 @@
 );%0A%0A
-// User.login = function(user, pass, cb) %7B%0A//   mongoose %0A// %7D;%0A%0A
 modu

fix server