title: Mongoose OpenShift Connection
body: <p>I'm building an application on openShift using nodejs and mongodb. I'm also using mongoose and try to connect with this code</p>
  
  <pre><code>var url = process.env.OPENSHIFT_MONGODB_DB_URL;
      var db = mongoose.connect(
          url,
          function(err) {
              console.log("Error loading the db...");
          });
  </code></pre>
  
  <p>Checking on the openshift logs I can see that it gives me the error message. What's the right way to do this?</p>