Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

294
Vistas
angular ng build process taking high cpu on server

According to devops the ng build --prod command is taking to high cpu usage that why our server costing is increase. I don't know how i optimize this build process, but i have doubt when i run my ng build command on locally and on the server the console output is different.

prod console.:

⠋ Generating browser application bundles (phase: setup)... [2K [1G⠙ Generating browser application bundles (phase: building)... [2K [1G⠹ Generating browser application bundles (phase: building)... [2K [1G⠸ Generating browser application bundles (phase: building)... [2K [1G⠼ Generating browser application bundles (phase: building)... [2K [1G⠴ Generating browser application bundles (phase: building)... [2K [1G⠦ Generating browser application bundles (phase: building)... [2K [1G⠧ Generating browser application bundles (phase: building)... [2K [1G⠇ Generating browser application bundles (phase: building)... [2K [1G⠏ Generating browser application bundles (phase: building)... [2K [1G⠋ Generating browser application bundles (phase: building)... [2K [1G⠙ Generating browser application bundles (phase: building)... [2K [1G⠹ Generating browser application bundles (phase: building)... [2K [1G⠸ Generating browser application bundles (phase: building)... [2K [1G⠼ Generating browser application bundles (phase: building)... [2K [1G⠴ Generating browser application bundles (phase: building)... [2K [1G⠦ Generating browser application bundles (phase: building)... [2K [1G⠧ Generating browser application bundles (phase: building)... [2K [1G⠇ Generating browser application bundles (phase: building)... [2K [1G⠏ Generating browser application bundles (phase: building)... [2K [1G⠋ Generating browser application bundles (phase: building)... [2K [1G⠙ Generating browser application bundles (phase: building)... [2K [1G⠹ Generating browser application bundles (phase: building)... [2K [1G⠸ Generating browser application bundles (phase: building)... [2K [1G⠼ Generating browser application bundles (phase: building)... [2K [1G⠴ Generating browser application bundles (phase: building)... [2K [1G⠦ Generating browser application bundles (phase: building)... [2K [1G⠧ Generating browser application bundles (phase: building)... [2K [1G⠇ Generating browser application bundles (phase: building)... [2K [1G⠏ Generating browser application bundles (phase: building)... [2K [1G⠋ Generating browser application bundles (phase: building)... [2K [1G⠙ Generating browser application bundles (phase: building)... [2K [1G⠹ Generating browser application bundles (phase: building)... [2K [1G⠸ Generating browser application bundles (phase: building)... 

Local console:

 Generating browser application bundles (phase: setup)...Compiling @angular/core : es2015 as esm2015

In both console has difference is, on production the generating browser application... this line call many times but on local this is call only single time then bundle process is starting.

where is the gap in ng build command on local env and server env

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The multiple lines in the server output are just due to the fact that the server log doesn't know how to deal with the animated progress character that is displayed in the console.

For the server build, just disable the progress reporting:

ng build --no-progress --prod
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda