Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 9a82b05

Browse files
olizillaAlan Shaw
authored and
Alan Shaw
committed
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 ipfs/ipfs-webui#815 License: MIT Signed-off-by: Oli Evans <[email protected]>
1 parent 1461546 commit 9a82b05

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"form-data": "^2.3.2",
7373
"hat": "0.0.3",
7474
"interface-ipfs-core": "~0.78.0",
75-
"ipfsd-ctl": "~0.39.1",
75+
"ipfsd-ctl": "~0.39.3",
7676
"mocha": "^5.2.0",
7777
"ncp": "^2.0.0",
7878
"nexpect": "~0.5.0",

src/cli/commands/daemon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = {
2828
},
2929

3030
handler (argv) {
31-
print('Initializing daemon...')
31+
print('Initializing IPFS daemon...')
3232

3333
const repoPath = utils.getRepoPath()
3434

src/http/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,9 @@ function HttpApi (repo, config, cliArgs) {
155155
api.info.ma = uriToMultiaddr(api.info.uri)
156156
gateway.info.ma = uriToMultiaddr(gateway.info.uri)
157157

158-
console.log('API is listening on: %s', api.info.ma)
159-
console.log('Gateway (readonly) is listening on: %s', gateway.info.ma)
158+
console.log('API listening on %s', api.info.ma)
159+
console.log('Gateway (read only) listening on %s', gateway.info.ma)
160+
console.log('Web UI available at %s', api.info.uri + '/webui')
160161

161162
// for the CLI to know the where abouts of the API
162163
this.node._repo.apiAddr.set(api.info.ma, cb)

0 commit comments

Comments
 (0)