2009-12-05 26 views
0

安裝導軌使用git的插件://協議很簡單,你只需要輸入如何通過ssh從git安裝rails插件?

script/plugin install git://server.local/my_git_repo.git 

如何安裝插件從託管通過ssh一個混帳回購協議?

當我鍵入

script/plugin install [email protected]:plugin.git 

我得到「未找到插件」

我知道這不是一個git的問題,因爲安裝程序不會提示,即使我要我的SSH密碼。

回答

1

腳本/插件目前無法通過ssh處理git。

相反,您只需要從vendor/plugins目錄中手動克隆存儲庫。

$RAILS_ROOT/vendor/plugins $ git clone ssh://[email protected]:plugin.git 

插件腳本還從新克隆的副本中刪除隱藏的目錄,.git和.git-忽略。

相關問題