0
votes

i've two applications (frontend and backend) in same Azure Web APP (Windows Plan).

The backend application is under wwwroot\back folder

The frontend application is under wwwroot folder

When i deploy the frontend using azure web app deploy task under Azure DevOps, the backend folder will be overwritting. Also , the same thing when deploy backend

Any idea , to do a exclude of same folder before deploy the front ?

1
The best and easiest way is to put both the back directory and the wwwroot directory in the site directory.Jason Pan
In this way, the time spent locating error messages or modifying scripts will be greatly reduced. When the program is updated in the future, it will not appear, because of forgotten or lack of steps, which program does not work on the front end or the back end.Jason Pan
Please remember that in path mappings, modify the file directory of virtual applications and add folders in the scm website.Jason Pan
Hi @Quentin Merlin. Is there any update about this ticket? Feel free to let me know if the answer could give you some help. Just a remind of this.Kevin Lu-MSFT
Hello Sir @KevinLu-MSFT , I have been operated, I will test as soon as possibleQuentin Merlin

1 Answers

1
votes

Any idea , to do a exclude of same folder before deploy the front ?

In Azure Web APP deploy task, there is no such option could meet your requirements.

You could try to use Azure App Service deploy task.

In Azure App Service deploy task, you could enable the Select deployment method option and input the -skip argument

enter image description here

For example:

-skip:Directory=\\back 

OR

-skip:skipAction=Delete,objectName=dirPath,absolutePath=wwwroot\\back

-skip:skipAction=Update,objectName=dirPath,absolutePath=wwwroot\\back 

Then the target folder will skip the option to modify the content.

For more detailed information, you could refer to this ticket:Azure Pipelines: Exclude folders using Azure App Service Deploy and this blog: Demystifying MSDeploy skip rules.