Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.
/ Orion Public archive

114 Ensures that the configuration is correct (ensureDaemonConfigured) #94

Merged
merged 7 commits into from
May 3, 2018

Conversation

koalalorenzo
Copy link
Member

What changed?

  • Moves from plain binary to json manipulation for ensureDaemonConfigured
  • Adds more UI feedback to what is happening under the hood.

Manual testing on macOS and Ubuntu 16.04 on multiple cases (init no repo, with another daemon running, with no extra daemon running)

@koalalorenzo koalalorenzo changed the title 114 ensure daemon configured api not running 114 Ensures that the configuration is correct (ensureDaemonConfigured) Apr 30, 2018
*/
export function startIPFSDaemon () {
return new Promise((resolve, reject) => {
const ipfsProcess = spawnIPFSCommand('daemon', `--api=${global.IPFS_MULTIADDR_API}`)
const ipfsProcess = spawnIPFSCommand('daemon', '--init', `--api=${global.IPFS_MULTIADDR_API}`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to pass --api=${global.IPFS_MULTIADDR_API} here? What about the other addresses?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is better to!
The others are configured on another method. AFAIK this is not documented and I was not able to find the other args

@koalalorenzo koalalorenzo merged commit 847eb10 into master May 3, 2018
@koalalorenzo koalalorenzo deleted the bug/114-ensureDaemonConfigured-api-not-running branch May 5, 2018 11:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants