2014-09-02 120 views
0

我在嘗試在Heroku上部署我的rails 4項目時出現錯誤。 每當我試圖git push Heroku master命令我得到這個錯誤,git push heroku master的致命錯誤

C:\Sites\projects\eventstream>git push heroku master 
ssh: heroku.com: no address associated with name 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 

我試圖檢查與錯字的錯誤,

C:\Sites\projects\eventstream>git remote -v 
heroku [email protected]:boiling-river-3096.git (fetch) 
heroku [email protected]:boiling-river-3096.git (push) 
origin [email protected]:nileshlg2003/eventstream.git (fetch) 
origin [email protected]:nileshlg2003/eventstream.git (push) 

這是heroku.com 一樣,我不知道如何解決它,任何幫助將不勝感激。

+0

^h您已完成'heroku鍵:添加' – 2014-09-02 11:02:57

+0

是的我已經添加了關鍵 – gooner 2014-09-02 12:11:10

回答

0

請試試這個

首先,你檢查你創建正確的Heroku

heroku create boiling-river-309 

然後

git remote set-url heroku [email protected]:boiling-river-3096.git 

更多信息按照這個

https://devcenter.heroku.com/articles/git

+0

感謝您的建議,我試過了,但結果是一樣的,'C:\ Sites \ projects \ eventstream> heroku創建沸騰的河流309 創建沸騰-river-309 ...完成,堆棧是雪松 http://boiling-river-309.herokuapp.com/ | [email protected]:boiling-river-309.git Git remote heroku添加了 C:\ Sites \ projects \ eventstream> git remote set-url heroku [email protected]:boiling-r iver-3096.git C:\ Sites \ projects \ eventstream> git push heroku master ssh:heroku.com:沒有與名稱關聯的地址 致命:無法從遠程存儲庫讀取。 請確保您擁有正確的訪問權限 並存在存儲庫。 – gooner 2014-09-02 11:51:34