use port and host from config
This commit is contained in:
parent
e2b3dcf629
commit
749853be32
|
@ -40,8 +40,9 @@ class Authenticator {
|
||||||
|
|
||||||
registerEvents() {
|
registerEvents() {
|
||||||
this.events.once('outputDone', () => {
|
this.events.once('outputDone', () => {
|
||||||
|
const {port, host} = this.embark.config.webServerConfig;
|
||||||
this.logger.info(__('Access the web backend with the following url: %s',
|
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) => {
|
this.events.setCommandHandler('api:authorize', (token, cb) => {
|
||||||
|
|
Loading…
Reference in New Issue