mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Update npm tests & config to pass in Windows. (RIPD-209)
* Extend timeout for WebSocket test. * Windows networking doesn't like connecting to 0.0.0.0. Use 127.0.0.1 * Additional command line options in config. Can potentially be used to run rippled in a debugger.
This commit is contained in:
committed by
Tom Ritchford
parent
2b69ded1ea
commit
6fc136ae9a
@@ -87,11 +87,15 @@ Server.prototype.set_ledger_file = function(fn) {
|
||||
Server.prototype._serverSpawnSync = function() {
|
||||
var self = this;
|
||||
|
||||
var path = this.config.rippled_path;
|
||||
var args = [
|
||||
"-a",
|
||||
"-v",
|
||||
"--conf=rippled.cfg"
|
||||
];
|
||||
if (this.config.rippled_args) {
|
||||
args = this.config.rippled_args.concat(args);
|
||||
};
|
||||
|
||||
if (this.ledger_file != null) {
|
||||
args.push('--ledgerfile=' + this.ledger_file)
|
||||
@@ -104,7 +108,7 @@ Server.prototype._serverSpawnSync = function() {
|
||||
};
|
||||
|
||||
// Spawn in standalone mode for now.
|
||||
this.child = child.spawn(this.config.rippled_path, args, options);
|
||||
this.child = child.spawn(path, args, options);
|
||||
|
||||
if (!this.quiet)
|
||||
console.log("server: start %s: %s --conf=%s",
|
||||
|
||||
Reference in New Issue
Block a user