adrianhajdin / project_mern_memories

This is a code repository for the corresponding video tutorial. Using React, Node.js, Express & MongoDB you'll learn how to build a Full Stack MERN Application - from start to finish. The App is called "Memories" and it is a simple social media app that allows users to post interesting events that happened in their lives.
https://youtube.com/playlist?list=PL6QREj8te1P7VSwhrMf3D3Xt4V6_SRkhu
5.01k stars 1.84k forks source link

deploy server to heroku failed with mongodb atlas #13

Closed orendaeko closed 3 years ago

orendaeko commented 3 years ago

deploy server and got this log error :

Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://docs.atlas.mongodb.com/security-whitelist/

please help thanks

orendaeko commented 3 years ago

sorry i found this i can set in mongo db atlas for can access from anywhere, https://studio3t.com/knowledge-base/articles/mongodb-atlas-login-ip-whitelisting/