From 356465bdd3a263992d142854ada7785a6d6e6dfa Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Tue, 27 May 2014 20:19:08 +0900 Subject: [PATCH] Use public IP for local login. Should make cross-device testing easier. --- lib/cli.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/cli.js b/lib/cli.js index 169e147f..9e35674a 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -674,7 +674,11 @@ program 'auth-mock' , '--port', options.authPort , '--secret', options.authSecret - , '--app-url', util.format('http://localhost:%d/', options.appPort) + , '--app-url', util.format( + 'http://%s:%d/' + , options.publicIp + , options.appPort + ) ]) // app @@ -682,7 +686,11 @@ program 'app' , '--port', options.appPort , '--secret', options.authSecret - , '--auth-url', util.format('http://localhost:%d/', options.authPort) + , '--auth-url', util.format( + 'http://%s:%d/' + , options.publicIp + , options.authPort + ) , '--storage-url' , util.format('http://localhost:%d/', options.storagePort) , '--storage-plugin-image-url'