简体   繁体   English

如何在Azure中的App Service上清除较旧的部署?

[英]How can I clean out an older deployment on my App Service in Azure?

I have a new version of my web app and after a new deployment from a new Bitbucket repo the old version is still served. 我有一个新版本的Web应用程序,并且在从新的Bitbucket存储库进行新部署之后,仍然可以使用旧版本。 I've deleted the App Service and then created it again, but still the old stuff is served. 我已经删除了应用服务,然后再次创建了它,但是仍然可以使用旧的服务。 Everything I've tried results in a successful deployment of the new code, but when I browse the site, the old version is served. 我尝试过的所有操作都会成功部署新代码,但是当我浏览站点时,将使用旧版本。 To get rid of the old code can I go to the console and just delete everything in site/wwwroot? 要摆脱旧代码,我可以转到控制台并删除site / wwwroot中的所有内容吗? Is there a git repo in Azure I can initialize? 我可以初始化的Azure中是否有git repo?

According to your description, I assumed that you are using continuous deployment for your Azure App Service app. 根据您的描述,我假设您正在为Azure App Service应用程序使用连续部署 AFAIK, for basic web site deployment, azure would clone your Bitbucket repo to D:\\home\\site\\repository , then restore packages or compile your project, then deploy your project to D:\\home\\site\\wwwroot . AFAIK,对于基本的网站部署,azure会将您的Bitbucket D:\\home\\site\\repository库克隆到D:\\home\\site\\repository ,然后还原软件包或编译您的项目,然后将您的项目部署到D:\\home\\site\\wwwroot

As David commented that you could leverage KUDU or ftp tool (eg FileZilla ) to check your files under site\\wwwroot and site\\repository , and compare with your Bitbucket repo to make sure your source code has been synced into site\\repository . 正如David所说,您可以利用KUDU或ftp工具(例如FileZilla )来检查site\\wwwrootsite\\repository下的文件,并与Bitbucket site\\repository进行比较以确保您的源代码已同步到site\\repository

Also, you could try to delete site\\wwwroot and site\\repository via KUDU, then Disconnect and set your continuous deployment again on Azure portal to isolate this issue. 另外,您可以尝试通过KUDU删除site\\wwwrootsite\\repository ,然后断开连接并在Azure门户上再次设置您的连续部署以隔离此问题。

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

相关问题 如何对 Azure ML 服务部署进行故障排除? - How can I troubleshoot my Azure ML service deployment? 如何修复将node.js部署到无法通过npm安装的azure应用程序服务? - How can I fix deployment of node.js to azure app service that fails npm install? 如何在 Azure 应用服务部署上安装浏览器 - How to install browser on Azure App Service deployment Azure DevOps 发布管道消除了应用服务部署槽 - Azure DevOps Release Pipeline wipes out App Service Deployment Slot 服务主体如何登录到我的Azure应用程序服务? - How can a service principal login to my Azure app-service? 如何配置我的 azure 应用服务以使用 UNC 路径在我的内部网络上上传文件? - How can I configure my azure app service to upload the files on my internal network using UNC path? Azure 应用服务 Docker Linux 部署 - 我的文件在哪里? - Azure App Service Docker Linux Deployment - Where are my files? 如何使用Azure门户将App Service放置在不在域根目录下的URL上? - How can I use the Azure portal to position my App Service at a url which is not at the root of the domain? 如何在不重新发布Azure Worker Role Service的情况下更新我的app.config文件 - How can I update my app.config file without republishing Azure Worker Role Service 如何限制可以访问我的 Azure 应用服务的客户端? - How do I restrict the clients that can access my Azure App Service?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM