mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-27 14:05:27 +00:00
Merge pull request #1068 from embark-framework/bugfix/no-webserver-no-url
fix: do not display log if no webserver
This commit is contained in:
commit
c8d6f18648
@ -72,9 +72,12 @@ class Authenticator {
|
|||||||
let self = this;
|
let self = this;
|
||||||
|
|
||||||
this.events.once('outputDone', () => {
|
this.events.once('outputDone', () => {
|
||||||
const {port, host} = this.embark.config.webServerConfig;
|
const {port, host, enabled} = this.embark.config.webServerConfig;
|
||||||
this.logger.info(__('Access the web backend with the following url: %s',
|
|
||||||
(`http://${host}:${port}/embark?token=${this.authToken}`.underline)));
|
if (enabled) {
|
||||||
|
this.logger.info(__('Access the web backend with the following url: %s',
|
||||||
|
(`http://${host}:${port}/embark?token=${this.authToken}`.underline)));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.events.setCommandHandler('authenticator:authorize', (req, res, cb) => {
|
this.events.setCommandHandler('authenticator:authorize', (req, res, cb) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user