cde-toolbelt
Advanced tools
Comparing version 1.0.23 to 1.0.24
@@ -78,3 +78,4 @@ var colors = require('colors'); | ||
service: args[3], | ||
port: args[4] | ||
host: args[4], | ||
port: args[5] | ||
} | ||
@@ -81,0 +82,0 @@ break; |
@@ -16,2 +16,3 @@ var request = require('request'); | ||
this._service = options.service; | ||
this._host = options.host; | ||
this._port = options.port; | ||
@@ -23,3 +24,3 @@ }; | ||
console.info(colors.bold('Registering project %s on port %s'), this._service, this._port); | ||
console.info(colors.bold('Registering project %s on port %s'), this._service, this._host, this._port); | ||
@@ -67,3 +68,3 @@ // manual registration | ||
RegisterCommand.prototype._registerInterface = function (interface, callback) { | ||
console.info('\tRegistering interface %s.%s on port %s', interface, this._service, this._port); | ||
console.info('\tRegistering interface %s.%s on port %s', interface, this._service, this._host, this._port); | ||
request({ | ||
@@ -75,3 +76,3 @@ uri: this.getRouterUrl() + '/api/service', | ||
}, | ||
body: 'service=' + interface + '.' + this._service + '&port=' + this._port | ||
body: 'service=' + interface + '.' + this._service + '&host=' + this._host + '&port=' + this._port | ||
}, function (err, resp) { | ||
@@ -78,0 +79,0 @@ if (err) { |
{ | ||
"name": "cde-toolbelt", | ||
"version": "1.0.23", | ||
"version": "1.0.24", | ||
"dependencies": { | ||
@@ -340,5 +340,5 @@ "colors": { | ||
"commander": { | ||
"version": "2.7.1", | ||
"version": "2.8.0", | ||
"from": "commander@>=2.7.1 <3.0.0", | ||
"resolved": "http://registry.npmjs.org/commander/-/commander-2.7.1.tgz", | ||
"resolved": "http://registry.npmjs.org/commander/-/commander-2.8.0.tgz", | ||
"dependencies": { | ||
@@ -345,0 +345,0 @@ "graceful-readlink": { |
{ | ||
"name": "cde-toolbelt", | ||
"description": "Project starter for CDE apps", | ||
"version": "1.0.23", | ||
"version": "1.0.24", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ "Kamil Rokosz <lax@lax.net.pl>", |
52103
15
1281