mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 22:32:41 +00:00
Merge pull request #2359 from Gazook89/mongodb-URL-change
Change MongoDB address from localhost to 127.0.0.1
This commit is contained in:
@@ -10,7 +10,7 @@ const Mongoose = require('mongoose');
|
|||||||
const getMongoDBURL = (config)=>{
|
const getMongoDBURL = (config)=>{
|
||||||
return config.get('mongodb_uri') ||
|
return config.get('mongodb_uri') ||
|
||||||
config.get('mongolab_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)=>{
|
const handleConnectionError = (error)=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user