build-system/tasks/serve.js
/**
 * Closes the existing server and restarts it
 */
Closes the existing server and restarts it
Closes the existing server and restarts it
async function restartServer() {
  if (argv.new_server) {
    try {
      buildNewServer();
    } catch {
      log(red('ERROR:'), 'Could not build', cyan('AMP Dev Server'));
      return;
    }
  }
  resetServerFiles();
  startServer();
}
async function restartServer ( ) { if ( argv . new_server ) { try { buildNewServer ( ) ; } catch { log ( red ( 'ERROR:' ) , 'Could not build' , cyan ( 'AMP Dev Server' ) ) ; return ; } } resetServerFiles ( ) ; startServer ( ) ; }
Closes the existing server and restarts it
Closes the existing server and restarts it