我想爲作曲家創建我自己的存儲庫。我們稱之爲myrepo.git。因此,一個創建並把composer.json我回購的根只具有最低限度是這樣的:作曲家:無法從我的服務器獲取我的定製存儲庫
{
"name": "My/Myrepo",
"description" : "My repository",
"version": "1.0.0",
}
我把這個給我的git的服務器,所以我能夠通過這個從SVN獲得它:
git clone git://myserver.com/myrepo.git
但我想從作曲家那裏得到它。所以我創建composer.json我的工作站上:
{
"repositories": [
{
"type": "vcs",
"url": "git://myserver.com/myrepo.git"
}
]
}
的之後,我叫作曲家安裝。一切都完成沒有錯誤,但我的知識庫不會發胖。我不知道爲什麼。當我嘗試從github添加一些存儲庫時,它會填充提取沒有問題,但我的存儲庫不是。沒有錯誤。根本不值一提。所以輸出看起來像這樣:
composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
Nothing to install or update
Generating autoload files
因此,我在我的存儲庫(myrepo.git)中遇到了問題。但如果是這樣,我不明白我在作曲家安裝命令沒有錯誤。任何想法?