From 9a82b05201302c65ec80ff3ab76fd52c78674b01 Mon Sep 17 00:00:00 2001 From: Oli Evans Date: Fri, 19 Oct 2018 13:01:11 +0100 Subject: [PATCH] feat: show Web UI url in daemon output (#1595) - make it easier for people to discover the Web UI - tidy up inconsistencies across the log lines - add IPFS to the first line. confirm to new users they started what they expected to. fixes https://github.com/ipfs-shipyard/ipfs-webui/issues/815 License: MIT Signed-off-by: Oli Evans --- package.json | 2 +- src/cli/commands/daemon.js | 2 +- src/http/index.js | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 7b3aa922d1..0cf550cf4c 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "form-data": "^2.3.2", "hat": "0.0.3", "interface-ipfs-core": "~0.78.0", - "ipfsd-ctl": "~0.39.1", + "ipfsd-ctl": "~0.39.3", "mocha": "^5.2.0", "ncp": "^2.0.0", "nexpect": "~0.5.0", diff --git a/src/cli/commands/daemon.js b/src/cli/commands/daemon.js index 78a2213e78..6102d63673 100644 --- a/src/cli/commands/daemon.js +++ b/src/cli/commands/daemon.js @@ -28,7 +28,7 @@ module.exports = { }, handler (argv) { - print('Initializing daemon...') + print('Initializing IPFS daemon...') const repoPath = utils.getRepoPath() diff --git a/src/http/index.js b/src/http/index.js index ed1edce219..2d7781fc3f 100644 --- a/src/http/index.js +++ b/src/http/index.js @@ -155,8 +155,9 @@ function HttpApi (repo, config, cliArgs) { api.info.ma = uriToMultiaddr(api.info.uri) gateway.info.ma = uriToMultiaddr(gateway.info.uri) - console.log('API is listening on: %s', api.info.ma) - console.log('Gateway (readonly) is listening on: %s', gateway.info.ma) + console.log('API listening on %s', api.info.ma) + console.log('Gateway (read only) listening on %s', gateway.info.ma) + console.log('Web UI available at %s', api.info.uri + '/webui') // for the CLI to know the where abouts of the API this.node._repo.apiAddr.set(api.info.ma, cb)