Giter VIP home page Giter VIP logo

Comments (11)

eaarora-ms avatar eaarora-ms commented on August 14, 2024

@kodyang The existing deployment options that you have mentioned is msdeploy, however, we have started using zipdeploy in actions as well as in our newer tasks.
According to the documentation here: https://docs.microsoft.com/en-us/azure/app-service/deploy-zipdeploy Deletes the files left over from a previous deployment. However the zip deploy will only delete files that were part of a previous deployment and are not in the deployment artifact.

from webapps-deploy.

compulim avatar compulim commented on August 14, 2024

@eaarora-ms your link is 404.

image

Agree with @kodyang, using azure/webapps-deploy to deploy, it don't remove existing files, making the web app very difficult to debug because of extraneous files (development environment != production web app).

from webapps-deploy.

otter-computer avatar otter-computer commented on August 14, 2024

I believe the correct link is https://docs.microsoft.com/en-us/azure/app-service/deploy-zip

However the zip deploy will only delete files that were part of a previous deployment and are not in the deployment artifact.

@eaarora-ms This hasn't been my experience. My application has always been deployed via GitHub Actions but old project files still existed inside the webapp after they were deleted from my GitHub repo.

from webapps-deploy.

asilverstein avatar asilverstein commented on August 14, 2024

What is the status of this issue? It's very important to start each deployment with a clean (empty) target directory. Currently this is a blocking issue for using webapps-deploy.

from webapps-deploy.

AmrutaKawade avatar AmrutaKawade commented on August 14, 2024

We use Kudu REST API for deployment. there is already bug on kudu team for this. projectkudu/kudu#2822, projectkudu/kudu#3183

from webapps-deploy.

asilverstein avatar asilverstein commented on August 14, 2024

Amruta, that bug was last responded to by the team in 2018.

from webapps-deploy.

AmrutaKawade avatar AmrutaKawade commented on August 14, 2024

@eaarora-ms your link is 404.

image

Agree with @kodyang, using azure/webapps-deploy to deploy, it don't remove existing files, making the web app very difficult to debug because of extraneous files (development environment != production web app).

for different enviornments you can use slots https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots

from webapps-deploy.

AmrutaKawade avatar AmrutaKawade commented on August 14, 2024

Amruta, that bug was last responded to by the team in 2018.

We are following up with Kudu team for this issue. But currently we are unable to repro this. Can you share repro steps?

from webapps-deploy.

asilverstein avatar asilverstein commented on August 14, 2024

The repro was stated by @kodyang at the top of this issue, and has not changed: "The deployment only creates new files and overwrites existing ones, but does not delete files not part of the deployment"

from webapps-deploy.

aksm-ms avatar aksm-ms commented on August 14, 2024

Since this issue is on Kudu API which action uses please raise issue under https://github.com/projectkudu/kudu/issues/. Closing the issue.

from webapps-deploy.

PetrKaterinak avatar PetrKaterinak commented on August 14, 2024

Over six years old issue and still not solved? That is terrible, especially if I'm reading php class files in specific folders and performing actions on them using Reflection. Old files, which are no longer in git causing errors because of their different structure.

from webapps-deploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.