Express server listening on port 3000 [90mGET / [32m200 [90m120036ms[0m [90mGET / [32m200 [90m120010ms[0m
持续访问过程中,就会出现上述输出
贴代码吧,兄弟/姐妹。log 看不出来啥。
@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’)); });
var app = require(’…/app’);
写了三个…
@hyj1991 检查出来了,谢谢