mongodb - Mongo db connection in grails on cloudbees -


I'm using mongo db in grails and want to deploy my app for cloudbees. I have made a database in Mongo HQ and I do not know about the datasource parameter used. I followed the docs but I am unable to connect. Anyone can share any sample code of their data code, which is about the connection parameters of mongodb

  mongo {dbCreate = "update" host = "22.22.22.22" // It should be an IP, not DNS port = 27017 user name = "user" password = "user" database namename = "dbname" }  

Then try to connect to connect, then make some Mongo Config changes

Changes in mongod.conf

  bind_ip = 127.0.0.1 to bind_ip = 22.22.22.22  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -