问题试图战争部署到Azure的时候

问题描述 投票:1回答:1

我试图war文件部署到Azure的但失败了,这里就是我做的。

首先,我试图通过拖动下D:\home\site\wwwroot\webapps war文件部署战争,然后重新启动应用程序服务,但.war文件没有解压。

其次,我试着用这些steps使用电源外壳部署,但我得到这个错误信息:

Invoke-RestMethod: You do not have permission to view this directory or page.

任何人都可以解释我做错了!

顺便说一句,我的wwwroot下的web.config文件:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
   <system.webServer>
      <security>
         <requestFiltering>
            <requestLimits maxAllowedContentLength="4294967295" />
         </requestFiltering>
      </security>
      <httpPlatform processPath="%AZURE_TOMCAT85_HOME%\bin\startup.bat"> <!-- arguments="-config D:\home\site\wwwroot\conf\server.xml start"> -->
         <environmentVariables>
            <environmentVariable name="CATALINA_OPTS" value="-Dport.http=%HTTP_PLATFORM_PORT% -Xms512m -Xmx2048m" />
            <environmentVariable name="CATALINA_HOME" value="%AZURE_TOMCAT85_HOME%" />
         </environmentVariables>
      </httpPlatform>
   </system.webServer>
</configuration>
azure war web-deployment
1个回答
1
投票

战争并没有因为解压缩Tomcat没有运行,所以内部应用程序设置,确保Java的被激活和Java Web容器是Tomcat的。

enter image description here

另外,还要确保你有一个部署插槽(看上面的图),如果不创建一个新的。

希望能帮助到你。

© www.soinside.com 2019 - 2024. All rights reserved.