Ho to change default deployment path from wwwroot to wwwroot/webapps in azure webapp. I am using azure pipeline to build and deploy my java .war file.
Asked
Active
Viewed 502 times
0
-
I am not sure about Azure. But usually u can create another war. With just index.jsp which will redirect to ur war. This will be static and can be pushed to ur code repository . This should be ROOT.war. This is how we do in apache tomcat. Probably u will need to have a similar approach – TomJava Jul 27 '20 at 10:26
-
https://stackoverflow.com/questions/62742706/open-shift-jws-tomcat-8-redirect-base-url-to-application-war – TomJava Jul 27 '20 at 10:28
-
Changing the war file name is not an issue but I need to deploy it inside wwwroot/webapps even if the war file name is ROOT.war – soumen Jul 27 '20 at 10:39
-
I mean this will be another war. So there will be two war files. ROOT.war will have just one index.jsp which will redirect to your application – TomJava Jul 28 '20 at 05:40
-
I understand but ROOT.war also should be inside wwwroot/webapps. In azure app service we need to deploy war inside wwwroot/webapps. Whenever I am deploying it's getting deployed inside wwwroot, that's the problem. – soumen Jul 28 '20 at 06:00