|
|
@ -8,6 +8,7 @@ var indexRouter = require('./routes/index'); |
|
|
|
var accountRouter = require('./routes/account') |
|
|
|
var accountRouter = require('./routes/account') |
|
|
|
var mainRouter=require('./routes/main/main') |
|
|
|
var mainRouter=require('./routes/main/main') |
|
|
|
var projectRouter=require('./routes/main/project') |
|
|
|
var projectRouter=require('./routes/main/project') |
|
|
|
|
|
|
|
const server = require("inspector"); |
|
|
|
|
|
|
|
|
|
|
|
var app = express(); |
|
|
|
var app = express(); |
|
|
|
|
|
|
|
|
|
|
@ -45,4 +46,10 @@ app.use(function(err, req, res, next) { |
|
|
|
res.render('error'); |
|
|
|
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; |
|
|
|
module.exports = app; |
|
|
|