|
|
|
@ -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; |
|
|
|
|