无法使用gitlab上的composer和专用存储库解析主机名
当我想在composer中使用私有git存储库时,我添加了私有存储库,如无法使用gitlab上的composer和专用存储库解析主机名,git,composer-php,gitlab,gitlab-ci,Git,Composer Php,Gitlab,Gitlab Ci,当我想在composer中使用私有git存储库时,我添加了私有存储库,如 { type: "git", url: [git@host:port]:directory/subdirectory/repo. git" } 在我的Mac电脑上工作正常,但在服务器(Debian)上,当它尝试进行git克隆时,我发现无法解析主机名主机:端口]: 但是主机名是不可访问的。它似乎不喜欢语法[git@host:端口]: 我会使用type:gitlab,但composer在gitlab中的子
{
type: "git",
url: [git@host:port]:directory/subdirectory/repo. git"
}
在我的Mac电脑上工作正常,但在服务器(Debian)上,当它尝试进行git克隆时,我发现无法解析主机名主机:端口]:
但是主机名是不可访问的。它似乎不喜欢语法[git@host:端口]:
我会使用type:gitlab,但composer在gitlab中的子目录上有问题 如果不选择使用标准端口,那么问题在于端口-您可以通过http尝试
"url" : "http://user:password@host:port/directory/subdirectory/repo.git",
我猜您也测试过这个符号:
"url" : "ssh://git@host:port/directory/subdirectory/repo.git",
如果不选择使用标准端口,那么问题将是端口(您可以通过http尝试)
"url" : "http://user:password@host:port/directory/subdirectory/repo.git",
我猜您也测试过这个符号:
"url" : "ssh://git@host:port/directory/subdirectory/repo.git",
参考这个stackoverflow帖子嘿,谢谢,但这没有帮助。我已经做了,它在我的Mac电脑上工作。但在Debian上,我收到一条错误消息,无法解析主机名。您是否将IP地址用作
@host
?,有时系统名会在这篇stackoverflow文章中向meRefer发出相同的错误嘿,谢谢,但这没有帮助。我已经做了,它在我的Mac电脑上工作。但在Debian上,我收到一条错误消息,无法解析主机名。您是否将IP地址用作@host
?,有时系统名称会给我相同的错误,正确的语法是“url”:ssh://git@主机:port/directory/subdirectory/repo.git“,
。有时候事情可能很简单:D我不知道为什么gitlab会向我显示repo url aus[git@host:port]:…
谢谢,正确的语法是“url”:ssh://git@主机:port/directory/subdirectory/repo.git“,
。有时候事情可能很简单:D我不知道为什么gitlab会向我显示repo url aus[git@host:端口]:..