From 749853be32d6c8532979323650e534a19e6a9856 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Fri, 7 Sep 2018 10:46:51 -0400 Subject: [PATCH] use port and host from config --- lib/modules/authenticator/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/modules/authenticator/index.js b/lib/modules/authenticator/index.js index 45fdf2b7..dc634a39 100644 --- a/lib/modules/authenticator/index.js +++ b/lib/modules/authenticator/index.js @@ -40,8 +40,9 @@ class Authenticator { registerEvents() { this.events.once('outputDone', () => { + const {port, host} = this.embark.config.webServerConfig; this.logger.info(__('Access the web backend with the following url: %s', - ('http://localhost:8000/embark?token=' + this.authToken).underline)); + (`http://${host}:${port}/embark?token=${this.authToken}`.underline))); }); this.events.setCommandHandler('api:authorize', (token, cb) => {