mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 14:21:13 +00:00
Add SIGINT handler
This is so you can exit with a Ctrl-C.
This commit is contained in:

committed by
Matthew Somerville

parent
3841c36889
commit
f00a1ec426
5
index.js
5
index.js
@@ -18,6 +18,11 @@
|
||||
var chalk = require('chalk');
|
||||
var config = require('./config/' + (process.env.NODE_ENV || 'development') + '.json');
|
||||
|
||||
process.on( 'SIGINT', function() {
|
||||
console.log( '\nGracefully shutting down from SIGINT (Ctrl-C)' );
|
||||
process.exit( );
|
||||
});
|
||||
|
||||
require('./app')(config, function (err, app) {
|
||||
|
||||
console.log('');
|
||||
|
Reference in New Issue
Block a user