为部署做自耕农应用angular.js最好的方式? [英] Best way for deploy angular.js application made with yeoman?
问题描述
使用与自耕农而使用弹簧MVC用Java做的RESTful API一个连接angular.js I'm建筑应用SPA。 i'm初学者对角部署Web应用程序,所以我想知道一些替代型动物或最佳实践,例如使用应用服务器为tomcat的,或另一种选择或建议部署HTTP服务器例如Apache,里面的战争。
I´m building application SPA using angular.js with yeoman which connect with a API RESTful made in Java using spring-MVC . i´m begginer for deploy web applications in angular and so i want to know some differents alternatives or best practice , for example deploy in http-server as apache, inside war using application-server as tomcat , or another option or suggestions .
非常感谢你的帮助。
推荐答案
那么你的前端code是生产就绪,只需要运行 $咕噜构建
结果
并且由负责提供您的应用程序的后台非常相同的服务器服务由约曼(咕噜声其实)生产的静态资源。
Then your frontend code is production-ready, just run $ grunt build
and serve static resources produced by Yeoman (Grunt in fact) by the very same server that is responsible for providing the backend of your app.
看看我的回答类似的问题,显示出项目结构以及约曼和放一些必要的配置; Spring的MVC 。
在一些更高级的部署方案中,有可能是一个需要引入负载均衡和可能需要单独的服务器的前端和后端,但是我们在这里所说的基本配置。
In some more advanced deployments scenarios, there might be a need for introducing load-balancing and you might need separate servers for the frontend and backend, but we are talking about basic config here.
这篇关于为部署做自耕农应用angular.js最好的方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!