diff --git a/server/db.js b/server/db.js index 030d7f61b..cd8308c1b 100644 --- a/server/db.js +++ b/server/db.js @@ -10,7 +10,7 @@ const Mongoose = require('mongoose'); const getMongoDBURL = (config)=>{ return config.get('mongodb_uri') || config.get('mongolab_uri') || - 'mongodb://localhost/homebrewery'; + 'mongodb://127.0.0.1/homebrewery'; // changed from mongodb://localhost/homebrewery to accommodate versions 16+ of node. }; const handleConnectionError = (error)=>{