From 65daac4fd3e2e1a5fd6100f0c18aa9a05bc39973 Mon Sep 17 00:00:00 2001 From: Nathan Striedinger Date: Mon, 23 May 2016 16:05:38 -0400 Subject: [PATCH] Update Gulpfile.js (#32) --- Gulpfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gulpfile.js b/Gulpfile.js index 29162f8..e71b1ad 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -64,7 +64,8 @@ gulp.task('sass', function() { gulp.task('sculpin', function () { console.log('Building sculpin...'); gulp.src(defaults.sculpin) - // Run the command line commands to watch sculpin + // Kill process running on :8000. Run the command line commands to watch sculpin + .pipe(exec('lsof -ti TCP:8000 | xargs kill')) .pipe(exec(defaults.sculpin_run + ' generate --watch --server --project-dir="' + defaults.sculpin + '"')); });