gulp-livereload icon indicating copy to clipboard operation
gulp-livereload copied to clipboard

Livereload keep listening to the port after gulp exits for errors

Open p0o opened this issue 10 years ago • 6 comments

Every time there is an error and gulp exit, I should type "netstat -peanut | grep 8080" and find the listening process and kill it, otherwise I'm unable to start my gulp tasks again.

Is there any workaround available for this issue?

p0o avatar Oct 26 '15 20:10 p0o

+1

baptistedonaux avatar Nov 10 '15 09:11 baptistedonaux

I managed to solve the problem by using plumber for error handling in the first stream of my livereload task. It will handle to exit the process properly.

var plumber = require('gulp-plumber');
....
.pipe(plumber())
.
.
.
.pipe(livereload());

p0o avatar Nov 10 '15 09:11 p0o

thanks @p0o

baptistedonaux avatar Nov 10 '15 10:11 baptistedonaux

I am running into this as well, it seems livereload is keeping our gulp tasks open in webstorm.

brandonburkett avatar Nov 19 '15 16:11 brandonburkett

Hey, @p0o ! Just wanted to let you know that I've created a standalone fork of this repo, since it doesn't seem to be maintained anymore. You can find it here.

So I might be a good idea to re-open this issue there.

leo avatar Feb 17 '16 13:02 leo

@leo Thank you for the hint. We dropped Livereload alongside with the whole gulp task runners from our project and replaced them with NPM scripts and Webpack. You may open it yourself since I'm not an active user anymore.

p0o avatar Feb 19 '16 13:02 p0o