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

Commit

Permalink
feat: show Web UI url in daemon output (#1595)
Browse files Browse the repository at this point in the history
- 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 <oli@tableflip.io>
  • Loading branch information
olizilla authored and Alan Shaw committed Oct 19, 2018
1 parent 1461546 commit 9a82b05
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
},

handler (argv) {
print('Initializing daemon...')
print('Initializing IPFS daemon...')

const repoPath = utils.getRepoPath()

Expand Down
5 changes: 3 additions & 2 deletions src/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9a82b05

Please sign in to comment.