Skip to content

Instantly share code, notes, and snippets.

@iamphill
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamphill/099dc4365821e2c345d5 to your computer and use it in GitHub Desktop.
Save iamphill/099dc4365821e2c345d5 to your computer and use it in GitHub Desktop.
Grunt IIS kill on exit
module.exports = function (grunt) {
grunt.initConfig({
// Some other grunt tasks
iisexpress: {
server: {
options: {
path: require('path').resolve('.') + '/[PATH OF WEBSITE HERE]',
killOn: 'iis.kill'
}
}
}
});
process.on('SIGINT', function() {
grunt.event.emit('iis.kill');
process.exit(1);
});
grunt.registerTask('default', ['iisexpress', /*Other tasks here*/]);
};
@iamphill
Copy link
Author

iamphill commented Nov 4, 2014

Using Grunt module https://www.npmjs.org/package/grunt-iisexpress for this.

it is awesome to save having to open to Visual Studio which can kill any PC in a few minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment