You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to restart a process via the documentation in the README doesn't seem to work as expected (watch function gets called, but process doesn't get restarted). Instead I discovered that the below works well. Not sure if the documentation is off, or I'm doing something wrong, so I wanted to open a issue before a PR.
node: v10.1.0
The one that worked in restarting the process was:
gulp.task('serve',function(){varserver=gls('app/app.js');server.start();gulp.watch('app/**/*',function(file){console.log('reloading..');// doesnt work - comes from doc// server.notify.apply(server, [file]);// worksserver.start.bind(server)();});// unnecessary since file matches above watch glob// gulp.watch('app/app.js', server.start.bind(server));});
The text was updated successfully, but these errors were encountered:
Attempting to restart a process via the documentation in the README doesn't seem to work as expected (watch function gets called, but process doesn't get restarted). Instead I discovered that the below works well. Not sure if the documentation is off, or I'm doing something wrong, so I wanted to open a issue before a PR.
node:
v10.1.0
The one that worked in restarting the process was:
The text was updated successfully, but these errors were encountered: