Azure Webapp using Springboot Tomcat, Gradle error

Aman 1 Reputation point
2021-07-31T13:16:57.243+00:00

I have deployed my webapp using Github Actions but still it shows

Hey, Java developers!

Your app service is up and running.
Time to take the next step and deploy your code.

My app name is different from ROOT.

I have also tried deploying using WAR file but could not succeed.
From this url
https://learn.microsoft.com/en-us/azure/app-service/deploy-zip#deploy-war-file

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,035 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 26,241 Reputation points Microsoft Employee
    2021-08-02T02:46:13.107+00:00

    Hi @Aman ,

    The .war file needs to be deployed so it can be extracted by the hosting environment. Try deploying your app using POST request to https://<app-name>.scm.azurewebsites.net/api/wardeploy or using the Azure CLI maven plugin command mvn package azure-webapp:deploy

    Check to make sure your code was extracted correctly using the Kudu console. If you don't see your files, use unzip sample.war -d sample to manually unzip the contents. Make sure you've enabled Application Logging (Filesystem) so that you can view the deployment logs. They will be located at D:\home\LogFiles\Application. Check for catalina.yyyy-mm-dd.logs.

    1 person found this answer helpful.