tomcat7 - How to run Angular 4 project without npm server and using tomcat in local machine -


i want run angular 4 project using tomcat. please 1 can me in this.

if you're using angular cli, run build command follows (note period @ end):

ng build -prod --base-href .

this build bundles dist directory of project. copy dist directory webapps/root dir of tomcat installation dir.

start tomcat , open following url in browser: http://localhost:8080/dist

this pretty it.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -