We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c21089f commit 730f243Copy full SHA for 730f243
common/services/mongoose.service.js
@@ -15,7 +15,7 @@ const options = {
15
};
16
const connectWithRetry = () => {
17
console.log('MongoDB connection with retry')
18
- mongoose.connect("mongodb://mongo:27017/rest-tutorial", options).then(()=>{
+ mongoose.connect("mongodb://localhost:27017/rest-tutorial", options).then(()=>{
19
console.log('MongoDB is connected')
20
}).catch(err=>{
21
console.log('MongoDB connection unsuccessful, retry after 5 seconds. ', ++count);
0 commit comments