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

Commit

Permalink
Improve CLI output
Browse files Browse the repository at this point in the history
  • Loading branch information
haadcode committed Jan 30, 2017
1 parent fbd5cfa commit b452338
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion examples/file-feed/complete/src/ff-cli/add-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ const readFileContents = require('./read-file-contents')
const nodeOptions = require('./node1.config.js')

function addFile (feed, fileToAdd) {
console.log('Connecting to go-ipfs daemon...')
const node = ipfsApi('localhost', 5001)

console.log('Initialize OrbitDB')
const orbitdb = new OrbitDB(node)
const db = orbitdb.eventlog(feed, { cachePath: nodeOptions.orbitdbPath })

db.events.on('ready', () => {
console.log('Database ready.')
console.log('Database ready')
console.log()
console.log('Searching for peers...')

Expand Down
4 changes: 1 addition & 3 deletions examples/file-feed/complete/src/ff-cli/node1.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use strict'

module.exports = {
path: './ff-cli-data/node1/ipfs',
orbitdbPath: './ff-cli-data/node1/orbitdb',
signalAddr: '/dns4/star-signal.cloud.ipfs.team'
orbitdbPath: './cli-data/node1/orbitdb'
}

0 comments on commit b452338

Please sign in to comment.