How to clean up wwwroot folder on the target Azure Websites Windows Server before each deployment in VSTS

前端 未结 3 2008
没有蜡笔的小新
没有蜡笔的小新 2021-02-02 10:50

After about a dozen deployments, the wwwroot directory is filled with a lot of files due to active development and deployments. We are using VSTS\'s Azure A

3条回答
  •  感动是毒
    2021-02-02 11:26

    When using the Azure App Service Deploy task, and you are using the Publish using Web Deploy option, there is an additional option to Remove Additional Files at Destination.

    If you check this option, the deployment process will remove any files at the destination where there is no corresponding file in the package that is being deployed.

    In other words, it'll remove any left over files from a previous deployment that are no longer required.

提交回复
热议问题