Skip to content

Instantly share code, notes, and snippets.

@iamphill

iamphill/Gruntfile.js

Last active Aug 29, 2015
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@iamphill 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
You can’t perform that action at this time.