如何将默认文件夹从git-azure存储库更改为连续部署? [英] How I change the default folder into a continuous deployment from a git-azure repository?
问题描述
我正在使用ASP.NET Core中的一个简单应用程序.该存储库位于Azure Devops git上,我将其部署到App Service中.在Deployment Server下,我配置了持续部署(CI/CD),并且可以正常工作,但是文件已发送到服务器的wwwwroot.相反,我需要将它们放入/site/wwwroot/theFolderThatICreated.我已经搜索过DevOps git Pipelines/Releases,但不了解我在哪里配置此东西.
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.
恢复:当我推送到项目的master分支时,我希望将内容发送到我的应用程序服务的wwwroot下的文件夹中.
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.
推荐答案
如果您不进行任何更改,默认情况下,管道会将您的应用程序部署到 wwwroot
文件夹.
If you don't change anything, the pipeline will by default deploy your app to wwwroot
folder.
1.要部署到创建的文件夹,可以在azure Web门户中更改物理路径:
1.To deploy to your created folder, you can either change the physical path in azure web portal:
2.或者,您也可以在以扩展路径.如果在VirtualApplication中输入/FolderName
,则您的应用程序文件将部署到 site \ wwwroot \ FolderName
.
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 :)
这篇关于如何将默认文件夹从git-azure存储库更改为连续部署?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!