cli: add --instance-name option to differenciate mulitple instances in zeroconf networks (issue #118)
This commit is contained in:
parent
7cc4197952
commit
dff73a6c47
5 changed files with 7 additions and 3 deletions
|
|
@ -31,7 +31,7 @@ express.get('*', function(req, res){
|
|||
server.listen(settings.read('httpPort'))
|
||||
|
||||
zeroconf.publish({
|
||||
name: settings.read('appName'),
|
||||
name: settings.read('appName') + (settings.read('instanceName') ? ' (' + settings.read('instanceName') + ')' : ''),
|
||||
type: 'http',
|
||||
port: settings.read('httpPort')
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue