Last active
February 10, 2017 09:49
-
-
Save superzadeh/49b250e4da132700440b712a269b1084 to your computer and use it in GitHub Desktop.
Start IIS Express using gulp #tags: gulp, snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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