I've completed a tutorial on Angular and I want to deploy it in my tomcat server. I use eclipse to trigger my tomcat server which opens in localhost:8080 (I use/only know java for back-end). This angular project has Firebase as back-end, not java. I intend to use java as back-end, hence I need to deploy it in tomcat. YES I have tried all the stuff I found in stack overflow and YouTube. ie,
ng build --prod --aot --base-href=/myapp, putting it inwebapps/myapp/<files-from-angular-dist>and triedroot/myapp/<files-from-angular-dist>in tomcat.base href =".",base href ="./",base href ="/", and placed in dist folder in root and webapps and it didn't work.- Not using AOT compiler (IDK why I did that).
- Putting it in webcontent folder of my dynamic-webapp (an old java project).
What should I do ?
- Apache Tomcat version - 9.0.22
- Eclipse Dist - JUNE 2019
- Angular - 8.2.0 (got from
ng version)