繁体   English   中英

git push heroku master-失败

[英]git push heroku master - FAIL

我向GitHub添加了SSH密钥以提交我的代码。 一切正常。 然后,我尝试通过以下步骤致力于Heroku来使我的应用生效:

[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 keys:clear)并再次添加键...无济于事。 我还更改了Github中的SSH密钥,看是否是问题所在。 我可以做些什么?

我还为SSH密钥而苦苦挣扎,特别是由于我在Heroku上有多个帐户。 然后我发现了这个https://github.com/ddollar/heroku-accounts ,它在帮助您在Heroku上使用多个帐户方面做得非常出色。

现在,您可能会猜到“ heroku”来源指向错误的Heroku应用程序。 要解决此问题,请执行以下操作。

  1. 删除heroku起源git remote rm heroku
  2. 读取了指向心静地球1147应用程序的heroku起源git remote add heroku git@heroku.com: calm-earth-1147.git
  3. 确认正确添加, git remote -v

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM