Permalink
Browse files

Change to use SERVICE_REGISTRY_URL for full service url

  • Loading branch information...
DukeyToo committed Feb 10, 2012
1 parent 2fe758e commit 4d1e42e58adad2c25f020f00fa1ede8841028d9d
Showing with 2 additions and 4 deletions.
  1. +1 −3 bin/proxy.js
  2. +1 −1 perfectapi.json
View
@@ -24,9 +24,7 @@ parser.on("getCulprit", function(config, callback) {
});
parser.on("server", function(config, callback) {
var port = config.environment.SERVICE_REGISTRY_PORT;
var endpoint = 'http://localhost:' + port + '/paas/registry';
//endpoint = 'http://services.perfectapi.com/paas/registry'; //for testing
var endpoint = config.environment.SERVICE_REGISTRY_URL;
perfectapi.proxy(endpoint, function(err, registry) {
//now we have a reference to the registry running on the same machine
View
@@ -15,6 +15,6 @@
],
"path": "paas/proxy",
"environment": [
{"parameter": "SERVICE_REGISTRY_PORT", "required":true, "default":"3001", "description":"port number that local service proxy is running on"}
{"parameter": "SERVICE_REGISTRY_URL", "required":true, "description":"Full url of service registry endpoint"}
]
}

0 comments on commit 4d1e42e

Please sign in to comment.