Best way for deploy angular.js application made with yeoman?

我的未来我决定 提交于 2019-12-09 05:29:48

问题


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 .

Thanks a lot for help .


回答1:


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.

take a look at my answer to similar question, showing project structure and some necessary configuration for Yeoman & 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.



来源:https://stackoverflow.com/questions/21745529/best-way-for-deploy-angular-js-application-made-with-yeoman

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!