简体   繁体   中英

publish war file to Azure Web Service

At first I want to mention, I did try some articles and also tried to get help for existing question/answer regarding deploying the war file to Azure web app but I didn't really got any where. I am new to it but also existing support either was in complete or very old.

I have created an App Service in Azure to host the war file. For my app service, I have selected Java 17 on Linux. For server stack selected 'Java SE'. (I also created another web app with that uses TomCat instead of Java SE server stack)

Then I wanted to publish the war file. So here I need guidance steps/ instruction to publish the war file Azure web app. 在此处输入图像描述

You can deploy your WAR package to Azure App Service to run your Java web app using the Azure CLI, PowerShell, or the Kudu Publish API.

Note : It is not recommended of deploying WAR / JAR / EAR packages using FTP or WebDeploy .

Use az webapp deploy command to deploy a WAR Package:

az webapp deploy --resource-group <group-name> --name <app-name> --src-path ./<package-name>.war

Refer to Microsoft documentation - Deploy WAR/JAR/EAR packages to Azure App Service for detailed information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM