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
647 B

7 years ago
#!/usr/bin/env node
var debug = require('debug')('www');
7 years ago
var app = require('../app');
const v8 = require('v8');
v8.setFlagsFromString("--max_old_space_size=" + (process.env.BTCEXP_OLD_SPACE_MAX_SIZE || 1024));
debug(`Set max_old_space_size to ${(process.env.BTCEXP_OLD_SPACE_MAX_SIZE || 1024)} MB`);
6 years ago
app.set('port', process.env.PORT || process.env.BTCEXP_PORT || 3002);
app.set('host', process.env.BTCEXP_HOST || '127.0.0.1');
7 years ago
var server = app.listen(app.get('port'), app.get('host'), function() {
debug('Express server listening on ' + server.address().address + ':' + server.address().port);
if (app.onStartup) {
app.onStartup();
}
7 years ago
});