diff options
Diffstat (limited to 'node_modules/mongoose/tools/repl.js')
-rw-r--r-- | node_modules/mongoose/tools/repl.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/node_modules/mongoose/tools/repl.js b/node_modules/mongoose/tools/repl.js deleted file mode 100644 index 8139a51..0000000 --- a/node_modules/mongoose/tools/repl.js +++ /dev/null @@ -1,36 +0,0 @@ -'use strict'; - -const co = require('co'); - -co(function*() { - const ReplSet = require('mongodb-topology-manager').ReplSet; - - // Create new instance - const topology = new ReplSet('mongod', [{ - // mongod process options - options: { - bind_ip: 'localhost', port: 31000, dbpath: `/data/db/31000` - } - }, { - // mongod process options - options: { - bind_ip: 'localhost', port: 31001, dbpath: `/data/db/31001` - } - }, { - // Type of node - arbiterOnly: true, - // mongod process options - options: { - bind_ip: 'localhost', port: 31002, dbpath: `/data/db/31002` - } - }], { - replSet: 'rs' - }); - - yield topology.start(); - - console.log('done'); -}).catch(error => { - console.error(error); - process.exit(-1); -}); |