测试信息

master
pan 4 years ago
parent c47dc65aba
commit 0a476ca569
  1. 7
      app.js

@ -8,6 +8,7 @@ var indexRouter = require('./routes/index');
var accountRouter = require('./routes/account')
var mainRouter=require('./routes/main/main')
var projectRouter=require('./routes/main/project')
const server = require("inspector");
var app = express();
@ -45,4 +46,10 @@ app.use(function(err, req, res, next) {
res.render('error');
});
// listen for TERM signal .e.g. kill
process.on ('SIGTERM', ()=>process.exit());
// listen for INT signal e.g. Ctrl-C
process.on ('SIGINT', ()=>process.exit());
module.exports = app;

Loading…
Cancel
Save