1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-03 17:59:28 +02:00

Start auth-mock with stf local and make the log tag clearer.

This commit is contained in:
Simo Kinnunen 2014-01-27 11:07:32 +09:00
parent 2b46ff41d3
commit e924b73394
3 changed files with 23 additions and 5 deletions

View file

@ -262,9 +262,17 @@ program
, 'device pull endpoint'
, String
, 'tcp://127.0.0.1:7116')
.option('--auth-port <port>'
, 'auth port'
, Number
, 7120)
.option('--auth-secret <secret>'
, 'auth secret'
, String
, 'kute kittykat')
.action(function() {
var log = logger.createLogger('cli')
var options = cliutil.lastArg(arguments)
, options = cliutil.lastArg(arguments)
// app triproxy
procutil.fork(__filename, [
@ -317,6 +325,16 @@ program
.catch(function(err) {
log.error('provider died', err.stack)
})
// auth-mock
procutil.fork(__filename, [
'auth-mock'
, '--port', options.authPort
, '--secret', options.authSecret
])
.catch(function(err) {
log.error('auth-mock died', err.stack)
})
})
program.parse(process.argv)