无法使用 gitlab 上的作曲家和私有存储库解析主机名
Could not resolve hostname with composer and private repository on gitlab
当我想将私有 git 存储库与 composer 一起使用时,我将私有存储库添加为
{
type: "git",
url: [git@host:port]:directory/subdirectory/repo. git"
}
在我的 Mac 上,它工作正常,但在服务器 (Debian) 上,当它尝试执行 git 克隆时,我得到 could not resolve hostname host:port]:
。
但是主机名是可以访问的。它似乎不喜欢语法 [git@host:port]:
我会使用类型:gitlab,但是作曲家在 gitlab 中的子目录有问题。
问题在于端口 - 您可以通过 http 尝试 - 如果使用标准端口不是一个选项
"url" : "http://user:password@host:port/directory/subdirectory/repo.git",
我想你也测试过这个符号:
"url" : "ssh://git@host:port/directory/subdirectory/repo.git",
当我想将私有 git 存储库与 composer 一起使用时,我将私有存储库添加为
{
type: "git",
url: [git@host:port]:directory/subdirectory/repo. git"
}
在我的 Mac 上,它工作正常,但在服务器 (Debian) 上,当它尝试执行 git 克隆时,我得到 could not resolve hostname host:port]:
。
但是主机名是可以访问的。它似乎不喜欢语法 [git@host:port]:
我会使用类型:gitlab,但是作曲家在 gitlab 中的子目录有问题。
问题在于端口 - 您可以通过 http 尝试 - 如果使用标准端口不是一个选项
"url" : "http://user:password@host:port/directory/subdirectory/repo.git",
我想你也测试过这个符号:
"url" : "ssh://git@host:port/directory/subdirectory/repo.git",