0
votes

I'm working with a simple application in ASP.NET Core. The repository is on Azure Devops git and I deploy this into a App Service. Under the Deployment Server I configurated Continuous Deployment (CI /CD) and It works, but the files are sent to wwwwroot of the server. Instead, I need them into /site/wwwroot/theFolderThatICreated. I've searched DevOps git Pipelines/Releases, but do not understood where I configure this thing.

Resume: when I do a push to the master branch of my project, I want the content send to a folder under wwwroot of my app service.

1

1 Answers

0
votes

If you don't change anything, the pipeline will by default deploy your app to wwwroot folder.

1.To deploy to your created folder, you can either change the physical path in azure web portal:

enter image description here

2.Or you can use VirtualApplication input in Azure App Service Deploy task to expand the path. If you enter /FolderName in VirtualApplication, then your application files will be deployed to site\wwwroot\FolderName.

Both two ways should work, hope it helps :)