We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8cdaf0 commit e4ab28bCopy full SHA for e4ab28b
Gruntfile.js
@@ -48,6 +48,16 @@ const configureGrunt = function (grunt) {
48
grunt.loadNpmTasks('grunt-subgrunt');
49
grunt.loadNpmTasks('grunt-update-submodules');
50
51
+ /** This little bit of weirdness gives the express server chance to shutdown properly */
52
+ const waitBeforeExit = () => {
53
+ setTimeout(() => {
54
+ process.exit(0);
55
+ }, 1000);
56
+ };
57
+
58
+ process.on('SIGINT', waitBeforeExit);
59
+ process.on('SIGTERM', waitBeforeExit);
60
61
const cfg = {
62
// #### Common paths used by tasks
63
paths: {
0 commit comments