0

We published our application to Azure Web App via Azure Dev Ops. When we SFTP into the Web App we can only see hostingstart.html, yet side loads and we can see proper files in Kuded and App Service Editor. There is only 1 deployment slot in our Azure Web App. How is that possible

WinBoss
  • 879
  • 1
  • 17
  • 40
  • 1
    Check if WEBSITE_RUN_FROM_PACKAGE is set to "1" in application settings. This setting doesn't extract the package content to the D:\home\site\wwwroot directory of your app. Instead, it uploads the ZIP file as-is to D:\home\data\SitePackages, and creates a packagename.txt in the same directory, that contains the name of the ZIP package to load at runtime. See: https://learn.microsoft.com/en-us/azure/app-service/deploy-run-package – Gaurav Kumar Jan 23 '20 at 06:49
  • Yes, WEBSITE_RUN_FROM_PACKAGE is set to "1". So, our Web App runs as ZIP package. I didn't know about this feature. Thank you. Please, move this comment to answer. Also this brings another question how can we avoid that behavior in our case https://stackoverflow.com/questions/59886757/azure-devops-runs-web-app-as-zip-package-instead-of-zip-deploy – WinBoss Jan 23 '20 at 20:44
  • @Gaurav Kumar You can convert your comment into an answer, it can help other community members who get the same issues more easily to find the solution,thanks. – Hugh Lin Feb 05 '20 at 10:51

1 Answers1

2

Check if WEBSITE_RUN_FROM_PACKAGE is set to "1" in application settings. This setting doesn't extract the package content to the D:\home\site\wwwroot directory of your app. Instead, it uploads the ZIP file as-is to D:\home\data\SitePackages, and creates a packagename.txt in the same directory, that contains the name of the ZIP package to load at runtime.

See: learn.microsoft.com/en-us/azure/app-service/deploy-run-package

Gaurav Kumar
  • 136
  • 8