cleanConfig() {
    let p;
    try {
      p = path.join(this.includePath, 'http');
      xfs.sync().rm(p);
      p = path.join(this.includePath, 'stream');
      xfs.sync().rm(p);
    } catch (e) {
      log.error('clean nginx config error', e.message);
    }
  }
/**
   * rm all nginx configs in dir
   */
rm all nginx configs in dir
rm all nginx configs in dir
cleanConfig() {
    let p;
    try {
      p = path.join(this.includePath, 'http');
      xfs.sync().rm(p);
      p = path.join(this.includePath, 'stream');
      xfs.sync().rm(p);
    } catch (e) {
      log.error('clean nginx config error', e.message);
    }
  }
cleanConfig ( ) { let p ; try { p = path . join ( this . includePath , 'http' ) ; xfs . sync ( ) . rm ( p ) ; p = path . join ( this . includePath , 'stream' ) ; xfs . sync ( ) . rm ( p ) ; } catch ( e ) { log . error ( 'clean nginx config error' , e . message ) ; } }
rm all nginx configs in dir
rm all nginx configs in dir