问题描述
我偶然从Deployment Center断开了本地Git存储库的连接,我想知道如何再次添加相同的存储库.
I Accidentally disconnected Local Git repo from Deployment Center, I would like to know how to add the same repo again.
我还想知道如何切换已部署的分支. (当我从应用程序服务断开存储库的连接时,我就是这样做的)
Also I would like to know how can I switch the branch that is deployed. (I was doing this when I disconnected the repo from the app service)
推荐答案
Y 您可以创建应用设置 称为"deployment_branch";带有要部署的分支的名称.
You can create an app setting called "deployment_branch" with the name of the branch to deploy.
其他信息:默认情况下,仅推送到;部署主控分支.但是您可以通过调用REST API来更改此设置 在Kudu服务上.一种简单的方法是使用 curl .看一眼 此文档:https://github.com/projectkudu/kudu/wiki/Deployment-branch .
Additional info: By default, only pushes to the master branch get deployed. But you can change this by calling a REST API on the Kudu service. One simple way to do this is to use curl. Take a look at this document: https://github.com/projectkudu/kudu/wiki/Deployment-branch.
这篇关于意外断开本地Git存储库与Deployment Center的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!