我有一个私有存储库,我想包含在我的composer.json中,这会将私有存储库放置在供应商文件夹中。使用https://getcomposer.org/doc/articles/handling-private-packages-with-satis.md#security的代码和SSH安全性,您需要填写一些用户特定的部分(见下文)。使用SSH的Composer私有存储库
"repositories": [
{
"type": "vcs",
"url": "ssh2.sftp://example.org",
"options": {
"ssh2": {
"username": "composer",
"pubkey_file": "/home/composer/.ssh/id_rsa.pub",
"privkey_file": "/home/composer/.ssh/id_rsa"
}
}
}
]
问题是我正在和其他程序员一起工作,我不希望在composer.json中有特定的用户内容。有没有办法从composer.json中排除特定的用户内容?
我实际上希望作曲家在命令行内执行时要求程序员提供个人公钥和私钥。
谢谢!我会尝试一下你的设置 – Kevin