0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

change localhost to 127.0.0.1

node v16+ better utilizes the address 127.0.01 rather than localhost, at least on MacOS while still working for Windows.
This commit is contained in:
Gazook89
2022-09-13 09:19:34 -05:00
parent 5e076fc948
commit f86ec64714

View File

@@ -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)=>{