Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
app/middleware/mongoose.js should have this change #48
per @payne-chris-r in 016 delivery.
The wiring has moved since the last update to this template.
'use strict'; - const database = require('../../config/database'); + const database = require('config/database'); const mongoose = require('mongoose'); const uri = process.env.MONGODB_URI || database.mongoose.uri; mongoose.Promise = global.Promise; mongoose.connect(uri); module.exports = mongoose;
Though this may not be necessary, see @bernardlee 's comment below.
Ben and I were going through this repository together last week (2017-03-03) to figure out why MongoDB wasn't working during the deployment process. We saw the line