bitcoind: spawn in default configs

This commit is contained in:
Braydon Fuller 2016-04-08 15:29:57 -04:00
parent 1013ad3c56
commit d11d0300de
2 changed files with 8 additions and 4 deletions

View File

@ -20,11 +20,13 @@ function getDefaultBaseConfig(options) {
services: ['bitcoind', 'web'], services: ['bitcoind', 'web'],
servicesConfig: { servicesConfig: {
bitcoind: { bitcoind: {
spawn: {
datadir: options.datadir || path.resolve(process.env.HOME, '.bitcoin'), datadir: options.datadir || path.resolve(process.env.HOME, '.bitcoin'),
exec: path.resolve(__dirname, '../../bin/bitcoind') exec: path.resolve(__dirname, '../../bin/bitcoind')
} }
} }
} }
}
}; };
} }

View File

@ -36,10 +36,12 @@ function getDefaultConfig(options) {
services: defaultServices, services: defaultServices,
servicesConfig: { servicesConfig: {
bitcoind: { bitcoind: {
spawn: {
datadir: path.resolve(defaultPath, './data'), datadir: path.resolve(defaultPath, './data'),
exec: path.resolve(__dirname, '../../bin/bitcoind') exec: path.resolve(__dirname, '../../bin/bitcoind')
} }
} }
}
}; };
fs.writeFileSync(defaultConfigFile, JSON.stringify(defaultConfig, null, 2)); fs.writeFileSync(defaultConfigFile, JSON.stringify(defaultConfig, null, 2));
} }