Permalink
Please sign in to comment.
Browse files
Fix double bitcore-lib loading issue
- Pass along services location and additional services for the default. - Reference specific commit of bitcore-build and remove mode hints.
- Loading branch information...
Showing
with
13 additions
and 7 deletions.
- +5 −3 bin/bitcore
- +7 −3 bin/bitcored
- +1 −1 package.json
| @@ -1,5 +1,7 @@ | ||
| #!/usr/bin/env node | ||
| -// vi: ft=javascript -*- mode: JavaScript; -*- | ||
| -var node = require('bitcore-node'); | ||
| -node.cli.bitcore(); | ||
| +var bitcore = require('bitcore-node/lib/cli/bitcore'); | ||
| +var path = require('path'); | ||
| +var servicesPath = path.resolve(__dirname, '../'); | ||
| +var additionalServices = ['insight-api', 'insight-ui']; | ||
| +bitcore(servicesPath, additionalServices); |
10
bin/bitcored
| @@ -1,5 +1,9 @@ | ||
| #!/usr/bin/env node | ||
| -// vi: ft=javascript -*- mode: JavaScript; -*- | ||
| -var node = require('bitcore-node'); | ||
| -node.cli.bitcored(); | ||
| +'use strict'; | ||
| + | ||
| +var path = require('path'); | ||
| +var bitcored = require('bitcore-node/lib/cli/bitcored'); | ||
| +var servicesPath = path.resolve(__dirname, '../'); | ||
| +var additionalServices = ['insight-api', 'insight-ui']; | ||
| +bitcored(servicesPath, additionalServices); |
0 comments on commit
e9015d6