[英]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\\wwwroot
和site\\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\\wwwroot
和site\\repository
,然后断开连接并在Azure门户上再次设置您的连续部署以隔离此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.