Express server listening on port 3000 [90mGET / [32m200 [90m120036ms[0m [90mGET / [32m200 [90m120010ms[0m
@leapon var debug = require(‘debug’)(‘xhealth-release’); var app = require(’…/app’);
var https = require(‘https’); var fs = require(“fs”);
var opt = { key: fs.readFileSync(‘D:/Program Files/https/server.key’), cert: fs.readFileSync(‘D:/Program Files/https/server.crt’) };
app.set(‘port’, process.env.PORT || 9090);
// var server = app.listen(app.get(‘port’), function() { // debug('Express server listening on port ’ + server.address().port); // });
// create a https server for data security https.createServer(opt, app).listen(app.get(‘port’), function(){ debug('Https server listening on port ’ + app.get(‘port’)); });