8

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?

Martin
  • 896
  • 1
  • 7
  • 22
  • Hi, I landed up on the same issue and found this post. Were you able to get this fixed? Does copying the contents in web apps dir works for you? As it messes my relative URLs for js and CSS load. did you faced this issue too? – ankurjhawar Jun 10 '16 at 03:54
  • 1
    No I just had to do a "grunt build" and copy the contents from my "dist" folder into a new folder within tomcat's "webapps" folder. If I would just copy the "dist" folder into the webapps directory I could access my app via "http://:/dist" – Martin Jun 10 '16 at 07:25

1 Answers1

12

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

Cheers!!

Ghayel
  • 1,113
  • 2
  • 10
  • 19