[英]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 文件夹
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.