Commit 2efd795c authored by Jan Grewe's avatar Jan Grewe

add shutdown (for CI)

parent f8b2457f
Pipeline #1 passed with stage
......@@ -38,6 +38,15 @@ var allPhotos = require('./routes/all');
var app = express();
process.title = 'WiPho';
var gracefulShutdown = function() {
console.log("Shutting down...");
process.exit();
}
process.on ('SIGTERM', gracefulShutdown);
process.on ('SIGINT', gracefulShutdown);
// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
......
......@@ -3,16 +3,17 @@
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node ./bin/www"
"start": "node ./bin/www",
"stop": "pkill --signal SIGINT WiPho"
},
"dependencies": {
"express": "~4.9.0",
"express": "~4.9.0",
"body-parser": "~1.8.1",
"cookie-parser": "~1.3.3",
"morgan": "~1.3.0",
"serve-favicon": "~2.1.3",
"debug": "~2.0.0",
"jade": "~1.6.0",
"gm": "~1.16.0"
"gm": "~1.16.0"
}
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment