简体   繁体   English

Azure Linux 上的应用服务 - Static 文件内容未更新

[英]Azure App Service on Linux - Static File Content not updated

I have created an App Service (inside Linux based App Service Plan).我创建了一个应用服务(在基于 Linux 的应用服务计划内)。 I have connected to wwwroot folder using FTP Client我已使用 FTP 客户端连接到 wwwroot 文件夹

  1. In the hostingstaart.html, I made a simple text change.在 hostingstaart.html 中,我做了一个简单的文本更改。
  2. I couldn't see the change getting reflected when I navigate to https://.azurewebsites.net/当我导航到 https://.azurewebsites.net/ 时,我看不到变化得到反映
  3. However, when I navigate to Kudu and access the same page, I can see the change.但是,当我导航到 Kudu 并访问同一页面时,我可以看到更改。

Below is the screenshot.下面是屏幕截图。 In the left hand side (kudu website), I can see the change that I have made (DevOps Engineers).在左侧(kudu 网站),我可以看到我所做的更改(DevOps 工程师)。 However, In this right hand side, the changes is not shown.但是,在右侧,未显示更改。 In order to troubleshoot, I have added another file as well which is visible in Kudu.为了排除故障,我还添加了另一个在 Kudu 中可见的文件。 But, I'm not able to access the same.但是,我无法访问它。

This is not at all an issue in Windows Based App Service Plan.这在基于 Windows 的应用服务计划中根本不是问题。 This is an issue only with Linux based app.这仅适用于基于 Linux 的应用程序。 Is there any docker container internally where it reads the files from?内部是否有任何 docker 容器从中读取文件? if yes, how do change those files?如果是,如何更改这些文件?

Appreciate any help here.感谢这里的任何帮助。

Thanks, Praveen谢谢,普拉文

在此处输入图像描述

Yes, Azure App Service on Linux run in containers and depending on the platform, different webservers and locations are used which can get confusing.是的,Linux 上的 Azure App Service 在容器中运行,并且根据平台,使用不同的网络服务器和位置,这可能会让人感到困惑。

For SSH access into the container go to https://<yourappname>.scm.azurewebsites.net/webssh/host - in .NET projects on Linux the default page you'll see on a new app service is stored at /defaulthome/hostingstart/wwwroot/hostingstart.html while files you upload via FTP will go to /home/site/wwwroot .对于 SSH 访问容器 go 到https://<yourappname>.scm.azurewebsites.net/webssh/host - 在 Linux 上的 .NET 项目中,您将在新应用程序服务/托管上看到的默认页面存储在/defaulthome/hostingstart/wwwroot/hostingstart.html而您通过 FTP 上传的文件将 go 到/home/site/wwwroot

That being said, I'd recommend to use the documented ways to publish content based on the platform you want to use.话虽这么说,我建议使用记录的方式根据您要使用的平台发布内容。 For .NET, you can find the docs here .对于 .NET,您可以在此处找到文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Azure 应用服务中没有为静态文件注册路由 - No route registered for static file in Azure App Service Azure 应用服务 Linux 容器:文件共享不可写 - Azure App Service Linux Container: File Share Not Writeable 将单个 Static 内容文件部署到 Azure 应用程序服务,通过 Z3A580FZ0Pipeline 中的 FTP 任务 - Deploy Individual Static Content Files to Azure App Service Via FTP Task in Azure Pipelines Azure应用服务访问文件存储以使用WebJob复制内容 - Azure app service access file storage to copy content using webjob Trying to Deploy a Spring Boot JAR file app to Azure App Service with Maven and Azure on Linux - Trying to Deploy a Spring Boot JAR file app to Azure App Service with Maven and Azure on Linux 从 Azure 服务访问静态内容 - Access static content from Azure service 如何恢复 azure 应用服务发布 static 内容没有备份或配置快照 - how to restore azure app service published static content with no backup or snapshot is configured 如何在 Azure App Service Linux 上设置 X-Content-Type-Options? - How to set X-Content-Type-Options on Azure App Service Linux? 从 Azure 文件共享加载内容到 Azure Static Web App,管理用户访问权限 - Loading content onto Azure Static Web App from Azure File Share, managing user access permissions Azure Devops发布管道-未更新Azure App Service文件 - Azure Devops Release Pipeline - Azure App Service files not updated
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM