How can I deploy my angular 2 application to tomcat or jboss?

I created the base angular 2 application. However, I need to deploy it to Jboss or Tomcat, since I need to use it with my Java EE application.

Thank you for your help.

+2
source share
2 answers

To create a production package, which is then served by an HTTP server, you must use a collection such as angular-cli or webpack . The connector creates all the necessary files that are in the htdocs directory. Typically, Angular applications are completely disconnected from your server server, so there should be no JBoss or Tomcat features.

The Angular team will increasingly focus on angular-cli as the main bundling solution, so it would be nice to start there.

+2
source

If you use angular-cli , you can use the ng build command . It creates all the static files to deploy the Angular2 application to the dist folder. You must copy and paste them into the webresources folder of your web application (WAR). I am currently looking for how to deploy these files easier.

+1
source

All Articles