简体   繁体   English

Azure 应用服务将旧文件保存在 /home/site/wwwroot/

[英]Azure App Service keeping old files at /home/site/wwwroot/

I'm deploying nodejs application to Azure App Service with visual studio code extension (Deploy to web app).我正在使用 Visual Studio 代码扩展将 nodejs 应用程序部署到 Azure 应用程序服务(部署到 web 应用程序)。 However when I inspect the files section, I found some old file/ files from previous deployment are still exist at /home/site/wwwroot/ folder.但是,当我检查文件部分时,我发现以前部署的一些旧文件/文件仍然存在于 /home/site/wwwroot/ 文件夹中。

For example first deployment have A.js , and second deployment I renamed it to B.js , /home/site/wwwroot/ will endup with A.js and B.js .例如,第一个部署有A.js ,第二个部署我将它重命名为B.js , /home/site/wwwroot/ 将以A.jsB.js

How can I resolved this issue?我该如何解决这个问题? Any suggestion will be appreciated, thank you!任何建议将不胜感激,谢谢!

on publish page click on show all settings.在发布页面上单击显示所有设置。

在此处输入图像描述

Make sure Remove additional files at destination.确保删除目的地的其他文件。

在此处输入图像描述

Before check Remove additional files at destination .在检查Remove additional files at destination之前。 showing old file on wwwroot folder.在 wwwroot 文件夹中显示旧文件。

在此处输入图像描述

在此处输入图像描述

After check Remove additional files at destination .选中Remove additional files at destination后。 showing old file on wwwroot folder.在 wwwroot 文件夹中显示旧文件。

在此处输入图像描述

在此处输入图像描述

暂无
暂无

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

相关问题 Azure App Service .net6 部署 - 错误:EISDIR:对目录进行非法操作,打开“/home/site/wwwroot/wwwroot/Identity/lib/bootstrap/LICENSE” - Azure App Service .net6 Deploy - Error: EISDIR: illegal operation on a directory, open '/home/site/wwwroot/wwwroot/Identity/lib/bootstrap/LICENSE' 默认的Azure Function应用程序基本路径D:\\ home \\ site \\ wwwroot Azure Function 2.x - Default Azure Function app base path D:\home\site\wwwroot Azure Function 2.x 在Azure Web App服务中部署wwwroot之外的PHP文件 - Deploying PHP files outside of wwwroot in Azure Web App service “访问路径 'C:\\home\\site\\wwwroot\\dataModel.csv' 被拒绝。” 在 .NET 核心应用程序中,部署在 Azure - "Access to the path 'C:\\home\\site\\wwwroot\\dataModel.csv' is denied." in a .NET Core app, deployed in Azure 在部署新的 Azure 应用程序之前从 Kudu /site/wwwroot/ 删除现有文件 - Delete existing files from Kudu /site/wwwroot/ before new Azure app deployment 将新文件添加到wwwroot文件夹时,Azure App Service-App Domain重新启动 - Azure App Service - App Domain restarted when adding new files into wwwroot folder Azure App Service.msg 文件保存在 wwwroot 中,其中包含 rest 文件,但说找不到文件? - Azure App Service .msg File saved in wwwroot with rest of files, but says file not found? 如何在web.config中引用wwwroot路径文件-Azure应用服务 - How to refer wwwroot path files in web.config - Azure App service 如何通过 FTP 访问我的 Azure 应用服务文件? wwwroot 目录为空 - How do I access my Azure App Service Files via FTP? The wwwroot directory is empty Azure 应用服务无法从 wwwroot 文件系统加载 pfx 证书 - An Azure App Service cannot load a pfx certificate from the wwwroot filesystem
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM