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

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -