App Service (Linux) deployment not removing deleted files

James H 0 Reputation points
2023-09-06T12:16:16.6366667+00:00

I'm using Azure App Service (Linux) and the Deployment Centre (CI/CD) to deploy a PHP application.

On deployment, files deleted in the repository aren’t removed.  From the logs I can see that it clones into /repository, and then it copies the folder into the /wwroot folder.

The files are gone from the /repository folder – but not the /wwwroot folder.

Has anyone else run into this problem? I assume there is an app setting I need to set, I would appreciate any guidance that you can be provided.

 

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,914 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 21,766 Reputation points
    2023-09-08T08:48:09.1233333+00:00

    @James H

    Thanks for reaching here! It seems like you are facing an issue with file deletion during deployment of your PHP application on Azure App Service (Linux).

    When you deploy your application using the Deployment Center (CI/CD), it clones your repository into the /repository folder and then copies the contents of this folder into the /wwwroot folder. However, it seems that the files deleted in the repository are not being removed from the /wwwroot folder during deployment.

    To resolve this issue, you can try the following steps:

    Let us know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.