How can I deploy an Angular 2 application on tomcat server (Windows Server 2012)

后端 未结 5 1711
情话喂你
情话喂你 2020-12-28 08:57

I\'m new in AngularJS 2 framework and I\'m stuck!

I want to deploy an application (quickstart for example) on a Windows Server 2012. I have already installed Apache

5条回答
  •  时光取名叫无心
    2020-12-28 09:48

    1. Run this command ng build --prod on your terminal
    2. After check one folder is created in parallel of src dist and go to dist folder and go to inside of your project folder and select all files and paste in inside of WebContant and parallel in web-INF and go to inside on index.html page and replace / from . in like href="." and go to url example: http://localhost:8080/ProjectName/#/URL and check it.

提交回复
热议问题