Currently we are deploying our angular app in apache server by copying the dist folder.
I am curious to know the difference between deploying as war file vs dist folder and also the difference of deploying the angular app as war in jboss or tomcat application server instead of deploying that in web server directly.
I would like to know the pros and cons of these two approaches in terms of performance and security and also I would like to know the industry standard approach for angular deployment.
Any help will be greatly appreciated!!!
Apache HTTP Server , Apache Tomcat and WildFly (formerly JBoss Application Server) are all web servers, so they can server static resources such as your Angular application. The latter two are also servlet containers, while WildFly is a full Java EE/Jakarta EE application server.
The difference would mainly be performance:
A common deployment configuration is to configure Apache HTTP Server as a reverse proxy for the Servlet Container. In such a configuration you can let Apache serve the static content, while leaving the execution of servlets to the Servlet Container.
See also: