Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy AngularJS app on tomcat

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?

like image 612
Martin Avatar asked Nov 18 '15 16:11

Martin


People also ask

Can we run angular in 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.


1 Answers

Just copy paste your all files in your project folder e.g. $TOMCAT_PATH/webapps/your-project-root/

Cheers!!

like image 91
Ghayel Avatar answered Oct 19 '22 01:10

Ghayel