I created an AngularJS app with the yeoman angular generator. Now I want to host it using Apache tomcat.
I already ran "grunt build" and have all my assets ready in the "dist"-folder. Is there a way to create a .war-file or can I just copy the files to a folder inside tomcat?
To deploy an angular application in tomcat we need to build the application using the ng tool. For this demo, I am going to build a simple default angular application using below command. To create an angular application run the following command in command prompt as shown below.
Just copy paste your all files in your project folder e.g. $TOMCAT_PATH/webapps/your-project-root/
Cheers!!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With