PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, July 14, 2022

[FIXED] When i am deploying my angular app in tomcat it creates two foldername in the url leads to 404 error

 July 14, 2022     angular, deployment, tomcat, web, web-deployment     No comments   

Issue

When i am deploying my angular app in tomcat it creates two filename in the url leads to 404 error.I have used the command ng build --base-href=usersfront. Please help me with the issue.enter image description here


Solution

Follow bellow steps

  1. ng build --base-href=/userfront/
  2. After successfully build the project
  3. Create userfront folder inside tomcat web-apps and copy all files(html, css and js) from dist folder to userfront folder.
  4. And Try with this url http://localhost:8080/userfront/index.html


Answered By - Santosh Shinde
Answer Checked By - Gilberto Lyons (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing