Skip to content

Instantly share code, notes, and snippets.

@superzadeh
Last active February 10, 2017 09:49
Show Gist options
  • Save superzadeh/49b250e4da132700440b712a269b1084 to your computer and use it in GitHub Desktop.
Save superzadeh/49b250e4da132700440b712a269b1084 to your computer and use it in GitHub Desktop.
Start IIS Express using gulp #tags: gulp, snippet
gulp.task('iisxpress', function () {
var startDir = process.cwd();
var iisExpressPath = process.env['ProgramFiles(x86)'] + "\\IIS Express";
var cmd = 'iisexpress /port:3005 /path:' + startDir;
util.log('Starting iisexpress with command: ' + cmd);
gulp.src('')
.pipe(shell([cmd], {
cwd: iisExpressPath,
quiet: true
}))
.on('error', util.log);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment