Angular JS

tomcat7 angular4 depoly

봄산 2018. 11. 27. 09:52

If you're using Angular CLI, run the build command as follows (note the period at the end):

ng build -prod --base-href .

This will build the bundles into the dist directory of your project. Copy the dist directory to the webapps/ROOT dir of your Tomcat installation dir.

Start Tomcat and open the following URL in your browser: http://localhost:8080/dist

This is pretty much it.