我试图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>