我试图在Heroku上部署我的rails 4项目时遇到错误。
每当我尝试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 git@heroku.com:boiling-river-3096.git (fetch)
heroku git@heroku.com:boiling-river-3096.git (push)
origin git@github.com:nileshlg2003/eventstream.git (fetch)
origin git@github.com:nileshlg2003/eventstream.git (push)
在heroku.com上也一样 我不知道如何解决它,任何帮助都将不胜感激。
答案 0 :(得分:0)
请试试这个
首先你检查你是否正确创建了heroku
heroku create boiling-river-309
然后
git remote set-url heroku git@heroku.com:boiling-river-3096.git
更多信息请点击此