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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -