gimm / gulp-live-server

serve your nodejs/static app live
148 stars 71 forks source link

Livereload not reloading #24

Closed alexfu closed 9 years ago

alexfu commented 9 years ago

I seem to be having issues getting the server to restart upon changes. Here is my task...

gulp.task('serve', function () {
  var server = gls.new('bin/www');
  server.start();

  gulp.watch(['routes/**/*.js', 'views/**/*.jade'], function (args) {
    server.notify.apply(server, [args]);
  });
});

When I change something, nothing happens in the output nor does a refresh reflect the changes I've made. Am I missing anything?

alexfu commented 9 years ago

Ugh, nvm, saw I needed a livereload 'client'.