4

我只是在 Azure 中创建了一个网站,但在设置 GIT 部署时遇到了问题。我在菜单中选择了“从源代码管理设置部署”并选择了“外部存储库”类型。目前我所有的回购都在“代码库”。所以我选择了一个外部 GIT 仓库。问题是创建不会要求用户名和/或密码。由于这个原因,我在克隆上有错误。

DEPLOYMENT FAILED: woensdag 18 december 2013 14:22 
Fetch from https://username.codebasehq.com/projectname/projectname.git
ID: temp-1db5d AUTHOR: N/A
DEPLOYED BY: username.codebasehq.com

Azure 部署日志:

remote: Authentication Required
fatal: Authentication failed for 'https://username.codebasehq.com/projectname/projectname.git/'

D:\Program Files (x86)\Git\bin\git.exe fetch external --progress
4

1 回答 1

1

请注意,即使它有效,当您将更改推送到代码库时,外部存储库也不会导致自动部署,您需要单击 Azure 门户中的“同步”按钮。

Kudu(Azure 中的 git 引擎)有一些基本的代码库支持(这里),但在 Azure 门户中不支持。可以手动设置它,但涉及许多步骤(此处有一些相关信息)。请注意,这在 Azure 中不受官方支持,您可能是第一个尝试它的人 :)

于 2013-12-20T06:29:05.143 回答