简体   繁体   中英

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. 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? Is there a git repo in Azure I can initialize?

According to your description, I assumed that you are using continuous deployment for your Azure App Service app. 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 .

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 .

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM