diff --git a/gulpfile.js b/gulpfile.js index 74f581cc..8ba4e1d8 100755 --- a/gulpfile.js +++ b/gulpfile.js @@ -158,6 +158,17 @@ gulp.task('serve', function(cb) { }); }); +// Windows command to launch nginx serv +gulp.task('serve-win', function(cb) { + exec('nginx -p %cd% -c nginx.conf', function (err, stdout, stderr) { + if (stderr) { + console.warn(stderr); + console.warn('Is NGINX already running?\n'); + } + cb(); + }); +}); + gulp.task('serve-stop', function(cb) { exec('kill -QUIT $(cat nginx.pid)', function (err, stdout, stderr) { if (stderr) console.log(stderr); else cb(err);