在Tomcat上部署AngularJS应用 [英] Deploy AngularJS app on tomcat

查看:396
本文介绍了在Tomcat上部署AngularJS应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用yeoman角度生成器创建了一个AngularJS应用.现在,我想使用Apache tomcat托管它.

I created an AngularJS app with the yeoman angular generator. Now I want to host it using Apache tomcat.

我已经运行了"grunt build",并在"dist"文件夹中准备好了我所有的资产.有没有办法创建.war文件,或者我可以将文件复制到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?

推荐答案

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

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

干杯!

这篇关于在Tomcat上部署AngularJS应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆