如何将我的angular 2应用程序部署在tomcat或jboss上? [英] How can I deploy my angular 2 app on tomcat or jboss?

查看:257
本文介绍了如何将我的angular 2应用程序部署在tomcat或jboss上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个基本的angular 2应用程序.但是,我需要将其部署在Jboss或Tomcat上,因为我需要将其与Java EE应用程序一起使用.

I have built a basic angular 2 app. However I need to deploy it on Jboss or Tomcat as I need to use it along with my Java EE application.

感谢您的帮助.

推荐答案

您将使用捆绑器(例如angular-cliwebpack)创建生产捆绑包,然后由HTTP服务器提供该捆绑包.捆绑程序创建进入htdocs目录的所有必需文件.通常,Angular应用程序与后端服务器完全分离,因此不应有任何JBoss或Tomcat特定内容.

You would use a bundler such as angular-cli or webpack to create the production bundle which is then served by the HTTP server. The bundler creates all required file that go into the htdocs directory. Normally Angular apps are completely decoupled from your backend server so there shouldn't be any JBoss or Tomcat specifics.

Angular团队将越来越多地将angular-cli作为首要的捆绑解决方案,因此从那里开始可能是个好主意.

The Angular team are going to increasingly focus on angular-cli as the premier bundling solution so it might be a good idea to start there.

这篇关于如何将我的angular 2应用程序部署在tomcat或jboss上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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