You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
437 B
20 lines
437 B
#!/usr/bin/env node
|
|
|
|
var ExpressApp = require('./lib/expressapp');
|
|
var WsApp = require('./lib/wsapp');
|
|
|
|
var basePath = process.env.BWS_BASE_PATH || '/bws/api';
|
|
var port = process.env.BWS_PORT || 3001;
|
|
|
|
var app = ExpressApp.start({
|
|
basePath: basePath,
|
|
});
|
|
//app.listen(port);
|
|
|
|
var server = require('http').Server(app);
|
|
|
|
var ws = WsApp.start(server);
|
|
|
|
server.listen(port);
|
|
|
|
console.log('Bitcore Wallet Service running on port ' + port);
|
|
|