在 tomcat 上部署 AngularJS 应用程序

Deploy AngularJS app on tomcat

我使用 yeoman angular 生成器创建了一个 AngularJS 应用程序。现在我想使用 Apache tomcat.

托管它

我已经 运行 "grunt build" 并且在 "dist" 文件夹中准备好了我的所有资产。有没有办法创建 .war 文件,或者我可以将文件复制到 tomcat 中的文件夹吗?

只需将所有文件复制粘贴到项目文件夹中,例如$TOMCAT_PATH/webapps/your-project-root/

干杯!!