2017-04-24 60 views
2

直接從github存在依賴項。這不是我的資料庫。它在github上。無法部署在「mix.exs」中具有github依賴項的網站

defp deps do 
    [{:something123, git: "[email protected]:user123/something123.git"} 

在本地主機上運行良好。但是,當我部署服務器時,會引發異常:

* Updating something123 ([email protected]:user123/something123.git) 
Host key verification failed. 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 
** (Mix) Command "git --git-dir=.git fetch --force --quiet --progress" failed 

什麼權限?再一次,該存儲庫不是我的。

我正在部署的這個網站的代碼也在github上,在某人的存儲庫中。關於部署迄今爲止的單元,我從github添加了依賴關係。

+0

是依賴公共或私人倉庫? –

+0

@MBuhot,public – user7905648

回答

2

嘗試改用內置github語法:

{:something123, github: "user123/something123"} 
+0

它的工作很好LOCALHOST與當前的語法!爲什麼不在服務器上? – user7905648

+0

我認爲這是git協議和HTTPS協議的區別。 –

+0

我可以用這個例子重現這個問題:'{:phoenix_swagger,git:「[email protected]:xerions/phoenix_swagger.git」} 但是這個語法的作用是:'{:phoenix_swagger,git:'git:/ /github.com/xerions/phoenix_swagger.git「}' –