首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >git推送heroku master -失败

git推送heroku master -失败
EN

Stack Overflow用户
提问于 2013-03-30 23:09:02
回答 2查看 537关注 0票数 0

我为Github添加了一个SSH密钥来提交我的代码。一切都运行得很完美。然后,我尝试使用以下步骤提交给Heroku,让我的应用程序上线:

代码语言:javascript
运行
复制
[omrails]$heroku keys:add
# Found the following SSH public keys:
# 1) github_rsa.pub 2) id_rsa.pub

# Which would you like to use with your Heroku account? 2 
# Uploading SSH public key /Users/jackburum/.ssh/id_rsa.pub... done

[omrails]$heroku create

# Creating calm-earth-1147... done, stack is cedar
# http://calm-earth-1147.herokuapp.com/ |
# git@heroku.com:calm-earth-1147.git

[omrails]$git push heroku master

# !  Your key with fingerprint *************** is not authorized to access omrails.
# fatal: The remote end hung up unexpectedly

然后我尝试清除Heroku键(heroku键:clear),然后再次添加这些键……无济于事。我还在Github中更改了我的SSH密钥,以查看这是否是问题所在。我可以做些什么不同的事情?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-04-02 20:07:34

现在,我会猜测' Heroku‘的来源指向一个不正确的Heroku应用程序。要解决此问题,请执行以下操作。

删除calm源- git remote rm heroku

  • Readd

  • 指向heroku - heroku -1147- git remote add heroku git@heroku.com: calm-earth-1147.git
  1. confirm它已正确添加,git remote -v
票数 0
EN

Stack Overflow用户

发布于 2013-03-30 23:56:48

我也很难使用SSH密钥,特别是因为我在Heroku上有多个帐户。然后我发现了这个https://github.com/ddollar/heroku-accounts,它能帮你在Heroku上使用多个账号。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15719998

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档