Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require "go-ipfs" directly to get exe path. #21

Merged
merged 3 commits into from
Sep 25, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ var run = require('subcomandante')
var _ = require('lodash')
var Q = require('kew')
var ipfs = require('ipfs-api')
var requireResolve = require('require-resolve')
var multiaddr = require('multiaddr')
var waterfall = require('promise-waterfall')
var shutdown = require('shutdown-handler')
var rimraf = require('rimraf')
var fs = require('fs')
var path = require('path')

var IPFS_EXEC = path.join(requireResolve('go-ipfs').pkg.root, '/bin/ipfs')
var IPFS_EXEC = require("go-ipfs")
var GRACE_PERIOD = 7500 // amount of ms to wait before sigkill

function configureNode (node, conf, cb) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"ipfs-api": "2.2.1",
"kew": "0.5.0",
"lodash": "3.6.0",
"go-ipfs": "0.3.7-3",
"multiaddr": "^1.0.0",
"promise-waterfall": "0.1.0",
"require-resolve": "0.0.2",
"rimraf": "2.3.4",
"shutdown-handler": "1.0.1",
"subcomandante": "^1.0.3"
Expand Down