code: function reload2() {
      var defer = q.defer();
      setTimeout(function () {
  
      if (browserSync.active) {
          browserSync.reload();
          defer.resolve();
      } else
      startServer2().then(defer.resolve);
  
    }, 1000);
      return defer.promise;
  }
docs: reload browserSync