Commits

Alvaro Videla committed 224e458

uses autoconfiguration for rabbitmq

Comments (0)

Files changed (1)

lib/cloudFoundryUtil.js

 var cloudfoundry = require('cloudfoundry');
 
 function getRabbitUrl(rabbitServiceName) {
-    if (process.env.VCAP_SERVICES) {
-        conf = JSON.parse(process.env.VCAP_SERVICES);
-        return conf['rabbitmq-2.4'][0].credentials.url;
-    } else {
-        return "amqp://localhost";
-    }
+    return "amqp://localhost";
 }
 
 function getRedisCredentials(redisServiceName) {