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.
19 lines
404 B
19 lines
404 B
10 years ago
|
#!/usr/bin/env node
|
||
10 years ago
|
|
||
10 years ago
|
var ExpressApp = require('./lib/expressapp');
|
||
10 years ago
|
var WsApp = require('./lib/wsapp');
|
||
10 years ago
|
var config = require('./config');
|
||
10 years ago
|
|
||
10 years ago
|
var port = process.env.BWS_PORT || 3001;
|
||
10 years ago
|
|
||
10 years ago
|
var app = ExpressApp.start(config);
|
||
10 years ago
|
//app.listen(port);
|
||
|
|
||
|
var server = require('http').Server(app);
|
||
|
|
||
10 years ago
|
var ws = WsApp.start(server, config);
|
||
10 years ago
|
|
||
10 years ago
|
server.listen(port);
|
||
10 years ago
|
|
||
10 years ago
|
console.log('Bitcore Wallet Service running on port ' + port);
|