Hi! I tries to deploy my app to an Ubuntu server and the Node application works fine but I cant connect to the mongodb database that are running on the same server… does anyone know what’s wrong here? I have never “deployed” an app before. I have setup auth = true in /etc/mongodb.conf and MONGODB_URI=mongodb://name:email@example.com
:27017/db_name in my app’s .env file. The collections and everything exists on the server but I cannot connect to it. Good to know: Everything works fine if I use an other remote mongodb database on Heroku instead of the one on the server... Please help :)
Do I need to do anything to access the port 27017 "locally" on the remote server? It’s fine if only the local server can access the db.