How do I deploy an angular2 app on a local tomcat server?

前端 未结 2 982
长情又很酷
长情又很酷 2021-01-06 16:08

I have been developing an angular2 app with the lite server. Now I would like to deploy this app on a tomcat server to connect with a java backend. I have been using angular

2条回答
  •  天涯浪人
    2021-01-06 17:03

    Generate the dist folder using ng build --environment=prod and copy the dist folder contents into tomcat /opt/tomcat/webapps/ROOT/ folder.

    When we hit the http://localhost:8080/ in the browser then automatically index.html file will be loaded.

    Thanks

提交回复
热议问题