use port and host from config

This commit is contained in:
Jonathan Rainville 2018-09-07 10:46:51 -04:00 committed by Pascal Precht
parent e2b3dcf629
commit 749853be32
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 2 additions and 1 deletions

View File

@ -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) => {