1234567891011121314151617 |
- var http = require("http");
- function start(app) {
- var httpServer = http.createServer(app);
- process.on('uncaughtException', function(e) {
- console.log(e);
- });
- var server = app.listen(8888, function () {
- var host = server.address().address
- var port = server.address().port
- console.log("应用实例,访问地址为 https://%s:%s", host, port)
- })
- }
- exports.start = start;
|