How I change the default folder into a continuous deployment from a git-azure repository?

孤街浪徒 提交于 2020-04-30 11:24:21

问题


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:


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:

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 :)



来源:https://stackoverflow.com/questions/60495315/how-i-change-the-default-folder-into-a-continuous-deployment-from-a-git-azure-re

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!