1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-12 23:45:57 +00:00

Lots of doc improvements

This commit is contained in:
Scott Tolksdorf
2016-12-25 22:05:23 -05:00
parent 90a6ac4ef8
commit 9b80f17564
3 changed files with 35 additions and 29 deletions

View File

@@ -16,7 +16,10 @@ const config = require('nconf')
//DB
require('mongoose')
.connect(process.env.MONGODB_URI || process.env.MONGOLAB_URI || 'mongodb://localhost/naturalcrit')
.connection.on('error', () => { console.log(">>>ERROR: Run Mongodb.exe ya goof!") });
.connection.on('error', () => {
console.log('Error : Could not connect to a Mongo Database.');
console.log(' If you are running locally, make sure mongodb.exe is running.');
});
//Account MIddleware